-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isdigit.c
26 lines (24 loc) · 1.04 KB
/
ft_isdigit.c
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
26
/* ************************************************************************** */
/* */
/* :::::::: */
/* isdigit.c :+: :+: */
/* +:+ */
/* By: ivan-mel <[email protected]> +#+ */
/* +#+ */
/* Created: 2022/10/04 12:42:40 by ivan-mel #+# #+# */
/* Updated: 2022/10/11 16:05:07 by ivan-mel ######## odam.nl */
/* */
/* ************************************************************************** */
#include <stdio.h>
int ft_isdigit(int a)
{
if (a >= '0' && a <= '9')
return (1);
return (0);
}
/*
int main(void)
{
printf("%d", ft_isdigit('1'));
return (0);
}*/