aboutsummaryrefslogtreecommitdiff
path: root/ft_isdigit.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_isdigit.c')
-rw-r--r--ft_isdigit.c4
1 files changed, 4 insertions, 0 deletions
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');
+}