blob: b39f6bc610a1f151c55c17c97f00ca5b46d85e6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_str_is_numeric.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/03 19:26:04 by cacharle #+# #+# */
/* Updated: 2019/07/05 08:37:16 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
int ft_str_is_numeric(char *str)
{
while (*str != '\0')
{
if (!(*str >= '0' && *str <= '9'))
return (0);
str++;
}
return (1);
}
|