-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isdigit.c
22 lines (19 loc) · 1.02 KB
/
ft_isdigit.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jados-sa <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/23 21:16:19 by jados-sa #+# #+# */
/* Updated: 2024/10/29 18:31:10 by jados-sa ### ########.fr */
/* */
/* ************************************************************************** */
/* Check for a digit (0 through 9). */
#include "libft.h"
int ft_isdigit(char c)
{
if (c > 47 && c < 58)
return (1);
return (0);
}