31 lines
1 KiB
C
31 lines
1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_strlen_double.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/12/12 13:45:14 by erey-bet #+# #+# */
|
|
/* Updated: 2022/12/12 13:46:16 by erey-bet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
int ft_strlen_double(char **strs)
|
|
{
|
|
int i;
|
|
int y;
|
|
int count;
|
|
|
|
i = 0;
|
|
while (strs[i])
|
|
{
|
|
y = 0;
|
|
while (strs[i][y])
|
|
{
|
|
count++;
|
|
}
|
|
i++;
|
|
}
|
|
return (count);
|
|
}
|