-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isdigit.c
23 lines (20 loc) · 1.04 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lsauvage <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/14 12:40:17 by lsauvage #+# #+# */
/* Updated: 2018/01/04 15:29:07 by lsauvage ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** Return 1 if c is a digit, 0 if not.
** Retourne 1 si c est un chiffre, 0 sinon.
*/
int ft_isdigit(int c)
{
return (c >= '0' && c <= '9');
}