libft/src/string/ft_isdigit_str.c
2025-02-26 16:21:01 +01:00

25 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_isdigit_str.c :+: :+: */
/* +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/02/20 15:40:24 by whaffman #+# #+# */
/* Updated: 2025/02/26 16:19:31 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isdigit_str(char *str)
{
while (*str)
{
if (!ft_isdigit(*str))
return (FALSE);
str++;
}
return (TRUE);
}