-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isdigit.c
24 lines (22 loc) · 1.01 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yuske <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/21 15:45:15 by yuske #+# #+# */
/* Updated: 2023/03/31 04:46:31 by yuske ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/**
* @brief
*
* @param chr
* @return int
*/
int ft_isdigit(int chr)
{
return (chr >= '0' && chr <= '9');
}