diff options
Diffstat (limited to 'src/ctype/ft_isdigit.c')
| -rw-r--r-- | src/ctype/ft_isdigit.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ctype/ft_isdigit.c b/src/ctype/ft_isdigit.c new file mode 100644 index 0000000..f8a5850 --- /dev/null +++ b/src/ctype/ft_isdigit.c @@ -0,0 +1,16 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_isdigit.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/10/07 10:41:20 by cacharle #+# #+# */ +/* Updated: 2019/10/07 10:41:25 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +int ft_isdigit(int c) +{ + return (c >= '0' && c <= '9'); +} |
