-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isdigit.c
25 lines (24 loc) · 1.2 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
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: imunaev- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/30 10:53:37 by imunaev- #+# #+# */
/* Updated: 2025/01/18 12:08:06 by imunaev- ### ########.fr */
/* */
/* ************************************************************************** */
/**
* @brief Checks if a character is a numeric digit.
*
* This function tests whether the given character `c` is a numeric
* digit (characters '0' through '9').
*
* @param c The character to check.
* @return int Nonzero if the character is a numeric digit, 0 otherwise.
*/
int ft_isdigit(int c)
{
return (c >= '0' && c <= '9');
}