-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isdigit.c
21 lines (19 loc) · 997 Bytes
/
ft_isdigit.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: xle-baux <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/25 15:25:39 by xle-baux #+# #+# */
/* Updated: 2021/11/25 16:19:04 by xle-baux ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isdigit(int i)
{
if (i >= 48 && i <= 57)
return (1);
else
return (0);
}