cub3d/libft/src/ft_cntarg.c

24 lines
1000 B
C
Raw Normal View History

2023-10-25 13:56:45 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_cntarg.c |o_o || | */
/* +:+ +:+ +:+ */
/* By: houtworm <codam@houtworm.net> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/07 00:38:26 by houtworm #+# #+# */
/* Updated: 2023/02/21 01:43:17 by houtworm \___)=(___/ */
/* */
/* ************************************************************************** */
#include "../libft.h"
int ft_cntarg(char **argv)
{
int i;
i = 0;
while (argv[i])
i++;
return (i);
}