-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathft_isdigit.c
26 lines (24 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
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apuchill <apuchill@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/26 15:20:55 by apuchill #+# #+# */
/* Updated: 2020/02/19 14:03:13 by apuchill ### ########.fr */
/* */
/* ************************************************************************** */
/*
** LIBRARY: <ctype.h>
** SYNOPSIS: decimal-digit character test
**
** DESCRIPTION:
** The isdigit() function tests for a decimal digit character.
*/
int ft_isdigit(int c)
{
if (c >= '0' && c <= '9')
return (1);
return (0);
}