rt/libft/ft_isdigits.c

28 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigits.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: scebula <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/04/26 21:54:11 by scebula #+# #+# */
/* Updated: 2016/04/26 21:54:38 by scebula ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char ft_isdigits(char *s)
{
int i;
i = 0;
while (s[i])
{
if (!ft_isdigit(s[i]))
return (0);
i++;
}
return (1);
}