-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isdigit.c
21 lines (20 loc) · 1.06 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mmalie <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/04 15:34:13 by mmalie #+# #+# */
/* Updated: 2024/11/14 09:28:36 by mmalie ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
* Implementation of isdigit() from <ctype.h>: Checks if the given character
* is a numeric digit (0-9).
*/
int ft_isdigit(int c)
{
return (c >= '0' && c <= '9');
}