-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isdigit.c
21 lines (19 loc) · 984 Bytes
/
ft_isdigit.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: masoares <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/02 12:45:26 by masoares #+# #+# */
/* Updated: 2023/10/05 19:19:00 by masoares ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isdigit(int c)
{
int a;
a = 0;
if (c >= '0' && c <= '9')
a = 1;
return (a);
}