libft
ft_isdigit.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* ft_isdigit.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2019/09/05 00:04:56 by unite #+# #+# */
10 /* Updated: 2020/07/16 03:04:52 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "libft.h"
15 
20 int ft_isdigit(int c)
21 {
22  if (c >= '0' && c <= '9')
23  return (1);
24  else
25  return (0);
26 }
ft_isdigit
int ft_isdigit(int c)
Replicates behaviour of isdigit from libc.
Definition: ft_isdigit.c:20
libft.h