-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_char_arr_len.c
24 lines (22 loc) · 994 Bytes
/
ft_char_arr_len.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_char_arr_len.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: moska <moska@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/06 02:46:40 by moska #+# #+# */
/* Updated: 2017/02/17 16:04:29 by tmoska ### ########.fr */
/* */
/* ************************************************************************** */
int ft_char_arr_len(char **arr)
{
int i;
i = 0;
while (*arr)
{
i++;
arr++;
}
return (i);
}