cub3d/libft/src/ft_cntarg.c
2023-10-26 19:11:30 +02:00

24 lines
1000 B
C

/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_cntarg.c :+: :+: */
/* +:+ */
/* By: houtworm <codam@houtworm.net> +#+ */
/* +#+ */
/* Created: 2023/02/07 00:38:26 by houtworm #+# #+# */
/* Updated: 2023/10/18 16:56:12 by houtworm ######## odam.nl */
/* */
/* ************************************************************************** */
#include "../libft.h"
int ft_cntarg(char **argv)
{
int i;
i = 0;
while (argv[i])
i++;
return (i);
}