-
Notifications
You must be signed in to change notification settings - Fork 2
/
ft_isdigit.c
24 lines (21 loc) · 1.1 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adiaz-lo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/13 09:25:04 by adiaz-lo #+# #+# */
/* Updated: 2020/01/13 09:27:38 by adiaz-lo ### ########.fr */
/* */
/* ************************************************************************** */
/*
** Function that checks if 'c' is a digit (0 through 9)
** For further information, please check the Standard C Library function
** 'isdigit(int c)'
*/
#include "libft.h"
int ft_isdigit(int c)
{
return (c >= '0' && c <= '9');
}