-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isdigit.c
28 lines (24 loc) · 1.11 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: dolvin17 <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/21 12:53:03 by ghuertas #+# #+# */
/* Updated: 2022/04/19 18:39:36 by dolvin17 ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/* testea cualquier char en busca de dígitos del 0 al 9 */
int ft_isdigit(int c)
{
return ((c >= '0') && (c <= '9'));
}
/*
int main(void)
{
printf("%d\n", ft_isdigit('8'));
printf("%d\n", ft_isdigit('k'));
return (0);
}*/