-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isdigit.c
executable file
·19 lines (18 loc) · 978 Bytes
/
ft_isdigit.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jpinyot <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/12 21:50:10 by jpinyot #+# #+# */
/* Updated: 2017/11/16 00:34:54 by jpinyot ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isdigit(int c)
{
if (c >= 48 && c <= 57)
return (1);
else
return (0);
}