21 lines
992 B
C
21 lines
992 B
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_isdigit.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: madumerg <madumerg@student.42angouleme. +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2023/10/30 12:47:04 by madumerg #+# #+# */
|
||
|
/* Updated: 2024/02/06 13:04:37 by madumerg ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
int ft_isdigit(int i)
|
||
|
{
|
||
|
if (i >= '0' && i <= '9')
|
||
|
return (1);
|
||
|
return (0);
|
||
|
}
|