-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_arylen.c
26 lines (23 loc) · 1.03 KB
/
ft_arylen.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: magoumi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/10/24 03:46:54 by magoumi #+# #+# */
/* Updated: 2018/10/24 05:56:01 by magoumi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_arylen(char **ary)
{
size_t counter;
counter = 0;
while (*ary)
{
counter += ft_strlen(*ary);
ary++;
}
return (counter);
}