GCC Code Coverage Report


Directory: ./
File: lib/my/my_strlen.c
Date: 2024-06-05 00:29:21
Exec Total Coverage
Lines: 5 5 100.0%
Functions: 1 1 100.0%
Branches: 2 2 100.0%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2023
3 ** my_strlen
4 ** File description:
5 ** Returns the lenght of a string (str)
6 */
7
8 40884 int my_strlen(char const *str)
9 {
10 40884 int len = 0;
11
12
2/2
✓ Branch 0 taken 460462 times.
✓ Branch 1 taken 40884 times.
501346 while (str[len] != '\0') {
13 460462 len = len + 1;
14 }
15 40884 return (len);
16 }
17