-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isdigit.c
28 lines (26 loc) · 1.07 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
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maareval <maareval@student.42malaga.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/19 13:46:29 by maareval #+# #+# */
/* Updated: 2022/04/20 12:59:39 by maareval ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isdigit(int c)
{
if ((c >= '0' && c <= '9'))
return (1);
return (0);
}
/*
#include <stdio.h>
int main ()
{
char c = 'a';
printf("%d", ft_isdigit(c));
return (0);
}*/