-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_str_isdigit.c
22 lines (21 loc) · 1021 Bytes
/
ft_str_isdigit.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_str_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mleonett <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/05 15:02:02 by mleonett #+# #+# */
/* Updated: 2018/04/05 15:08:32 by mleonett ### ########.fr */
/* */
/* ************************************************************************** */
int ft_str_isdigit(char *str)
{
while (*str)
{
if (!('0' <= *str && *str <= '9'))
return (0);
str++;
}
return (1);
}