-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isnum.c
21 lines (19 loc) · 1009 Bytes
/
ft_isnum.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: shogura <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/05/27 16:59:08 by shogura #+# #+# */
/* Updated: 2022/05/27 17:07:55 by shogura ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isnum(char *str)
{
while (*str)
if (!ft_isdigit(*str++))
return (0);
return (1);
}