-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isdigit.c
More file actions
19 lines (18 loc) · 990 Bytes
/
ft_isdigit.c
File metadata and controls
19 lines (18 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kbenjell <kbenjell@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/17 22:46:04 by kbenjell #+# #+# */
/* Updated: 2022/11/17 22:46:11 by kbenjell ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isdigit(int c)
{
if (c < 48 || c > 57)
return (0);
return (1);
}
// '0' = 48, '9' = 57