42_cube3D/libftx/extra/ft_tablen.c

24 lines
1017 B
C
Raw Normal View History

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tablen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/26 12:12:19 by cchauvet #+# #+# */
/* Updated: 2023/04/26 12:13:38 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
#include "./extra.h"
size_t ft_tablen(const char **tab)
{
size_t i;
i = 0;
while (tab[i] != NULL)
i++;
return (i);
}