-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isdigit.c
21 lines (19 loc) · 982 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_str_is_numeric.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: potero-d <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/09/14 09:19:55 by potero-d #+# #+# */
/* Updated: 2021/09/14 10:23:34 by potero-d ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isdigit(int c)
{
int r;
r = 1;
if (c < '0' || c > '9')
r = 0;
return (r);
}