-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathft_isdigit.c
More file actions
33 lines (30 loc) · 1.29 KB
/
Copy pathft_isdigit.c
File metadata and controls
33 lines (30 loc) · 1.29 KB
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
29
30
31
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cado-car <cado-car@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/07/30 20:21:44 by cado-car #+# #+# */
/* Updated: 2021/07/30 20:21:44 by cado-car ### ########lyon.fr */
/* */
/* ************************************************************************** */
/*
* LIBRARY
* #include <ctype.h>
* DESCRIPTION
* The isdigit() function tests for a decimal digit character.
* PARAMETERS
* #1. The character to test.
* RETURN VALUES
* The isdigit() function returns zero if the character tests false and
* returns non-zero if the character tests true.
*/
#include "libft.h"
int ft_isdigit(int c)
{
if (c >= '0' && c <= '9')
return (1);
else
return (0);
}