-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isdigit.c
More file actions
25 lines (23 loc) · 1011 Bytes
/
ft_isdigit.c
File metadata and controls
25 lines (23 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mobouifr <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/01 16:11:56 by mobouifr #+# #+# */
/* Updated: 2023/11/01 19:58:45 by mobouifr ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isdigit(int d)
{
if (d >= '0' && d <= '9')
{
return (1);
}
else
{
return (0);
}
}