-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isnumeric.c
More file actions
24 lines (21 loc) · 1.03 KB
/
ft_isnumeric.c
File metadata and controls
24 lines (21 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isnumeric.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: makbulut <makbulut@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/24 14:10:54 by makbulut #+# #+# */
/* Updated: 2022/09/05 13:52:47 by makbulut ### ########.fr */
/* */
/* ************************************************************************** */
#include "42-Libft/libft.h"
int ft_isnumeric(char *str)
{
int i;
i = 0;
while (str && str[i])
if (!ft_isdigit(str[i++]))
return (0);
return (1);
}