-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isdigit.c
21 lines (19 loc) · 1018 Bytes
/
ft_isdigit.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fvieira <fvieira@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/08/15 11:58:33 by fvieira #+# #+# */
/* Updated: 2022/08/22 15:19:30 by fvieira ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isdigit(int argument)
{
if (argument >= 48 && argument <= 57)
return (1);
else
return (0);
}