2023-10-25 13:56:45 +02:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
2023-10-26 19:11:30 +02:00
|
|
|
/* :::::::: */
|
|
|
|
/* 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 */
|
2023-10-25 13:56:45 +02:00
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#include "../libft.h"
|
|
|
|
|
|
|
|
int ft_cntarg(char **argv)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
i = 0;
|
|
|
|
while (argv[i])
|
|
|
|
i++;
|
|
|
|
return (i);
|
|
|
|
}
|