summaryrefslogtreecommitdiff
path: root/libft/ft_isdigit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/ft_isdigit.c')
-rw-r--r--libft/ft_isdigit.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libft/ft_isdigit.c b/libft/ft_isdigit.c
new file mode 100644
index 0000000..760e7fe
--- /dev/null
+++ b/libft/ft_isdigit.c
@@ -0,0 +1,18 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_isdigit.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: kdx <kdx @student.42angouleme.fr +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2022/09/26 12:32:05 by kdx #+# #+# */
+/* Updated: 2022/09/28 04:43:31 by kdx ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft.h"
+
+int ft_isdigit(int c)
+{
+ return (c >= '0' && c <= '9');
+}