19 lines
991 B
C
19 lines
991 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_isdigit.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: grobledo <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/02/02 17:48:20 by grobledo #+# #+# */
|
|
/* Updated: 2023/02/02 17:48:22 by grobledo ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
#include "libft.h"
|
|
|
|
int ft_isdigit(int c)
|
|
{
|
|
if (c >= '0' && c <= '9')
|
|
return (1);
|
|
return (0);
|
|
}
|