21 lines
996 B
C
21 lines
996 B
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_isdigit.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2022/10/11 16:34:14 by cchauvet #+# #+# */
|
||
|
/* Updated: 2022/10/11 16:35:40 by cchauvet ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "ft_printf.h"
|
||
|
|
||
|
int ft_isdigit(int c)
|
||
|
{
|
||
|
if (c <= '9' && c >= '0')
|
||
|
return (1);
|
||
|
return (0);
|
||
|
}
|