Line | Branch | Exec | Source |
---|---|---|---|
1 | /* | ||
2 | ** EPITECH PROJECT, 2023 | ||
3 | ** my_array_of_array_len | ||
4 | ** File description: | ||
5 | ** Returns the lenghts of array of array (array) | ||
6 | */ | ||
7 | |||
8 | #include <stddef.h> | ||
9 | |||
10 | 1 | int my_array_of_array_len(char **array) | |
11 | { | ||
12 | 1 | int len = 0; | |
13 | |||
14 |
2/2✓ Branch 0 taken 4 times.
✓ Branch 1 taken 1 times.
|
5 | while (array[len] != NULL) { |
15 | 4 | len = len + 1; | |
16 | } | ||
17 | 1 | return len; | |
18 | } | ||
19 |