-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_2d_len.c
25 lines (22 loc) · 1 KB
/
ft_2d_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
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_2d_len.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: eel-moun <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/31 16:44:59 by ariahi #+# #+# */
/* Updated: 2023/01/14 13:22:16 by eel-moun ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_2d_len(char **av)
{
int len;
len = 0;
if (!av)
return (-1);
while (av[len])
len++;
return (len);
}