libft
Loading...
Searching...
No Matches
ft_isdigit.c
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* ft_isdigit.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: tspoof <tspoof@student.hive.fi> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2022/10/25 14:49:38 by tspoof #+# #+# */
9/* Updated: 2022/10/25 14:52:26 by tspoof ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13int ft_isdigit(int c)
14{
15 if (c >= '0' && c <= '9')
16 return (1);
17 return (0);
18}
int ft_isdigit(int c)
Check if char is digit.
Definition ft_isdigit.c:13