-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isdigit.c
21 lines (19 loc) · 1002 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: oelbouha <oelbouha@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/30 09:43:58 by oelbouha #+# #+# */
/* Updated: 2022/10/03 17:53:45 by oelbouha ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isdigit(int s)
{
if (!(s >= '0' && s <= '9'))
return (0);
else
return (1);
}