-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strlen_2.c
26 lines (22 loc) · 1.04 KB
/
ft_strlen_2.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen_2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gabdoush <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/09/21 20:46:31 by gabdoush #+# #+# */
/* Updated: 2021/09/21 20:46:32 by gabdoush ### ########.fr */
/* */
/* ************************************************************************** */
# include <stdio.h>
size_t ft_strlen_2(char **s)
{
size_t n = 0;
while (s[n] != 0)
{
n++;
}
return (n);
}
// I'm not sure for now hoe to write the main function......