-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isdigit.c
26 lines (24 loc) · 1.08 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ana-lda- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/10 19:21:16 by ana-lda- #+# #+# */
/* Updated: 2024/04/11 20:43:37 by ana-lda- ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isdigit(int c)
{
if (c < 48 || c > 57)
return (0);
return (2048);
}
/*#include <stdio.h>
#include <ctype.h>
int main(void)
{
printf("%i\n", ft_isdigit(49));
printf("%i\n", isdigit(49));
}*/