From 5b653ccffdc33c8774697a93cad0b499b88dca71 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 28 Jul 2019 21:12:28 +0200 Subject: std library function almost done, tested with libft-unit-tests --- ft_isdigit.c | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ft_isdigit.c (limited to 'ft_isdigit.c') diff --git a/ft_isdigit.c b/ft_isdigit.c new file mode 100644 index 0000000..a41e1fd --- /dev/null +++ b/ft_isdigit.c @@ -0,0 +1,4 @@ +int ft_isdigit(int c) +{ + return (c >= '0' && c <= '9'); +} -- cgit