-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isdigit.c
19 lines (18 loc) · 995 Bytes
/
ft_isdigit.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lumfred <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/04 14:07:10 by lumfred #+# #+# */
/* Updated: 2021/10/15 13:25:41 by lumfred ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isdigit(int ch)
{
if (ch >= '0' && ch <= '9')
return (ch);
return (0);
}