| 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 |