-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathft_strlen_2.c
32 lines (28 loc) · 1.15 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
27
28
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen_2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apuchill <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/11/04 16:11:53 by apuchill #+# #+# */
/* Updated: 2020/11/04 16:14:01 by apuchill ### ########.fr */
/* */
/* ************************************************************************** */
/*
** LIBRARY: N/A
** SYNOPSIS: find length of two dimensional array
**
** DESCRIPTION:
** The strlen_2() function computes the length of the two dimensional
** array s.
*/
#include "libft.h"
size_t ft_strlen_2(char **s)
{
size_t l;
l = 0;
while (s[l] != 0)
l++;
return (l);
}