We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0563a44 commit 4d01b54Copy full SHA for 4d01b54
0x04-more_functions_nested_loops/1-isdigit.c
@@ -0,0 +1,11 @@
1
+#include "main.h"
2
+
3
+/**
4
+ * _isdigit - checks for a digit (0 through 9)
5
+ * @c: int to be checked
6
+ * Return: 1 if c is a digit, 0 otherwise
7
+ */
8
+int _isdigit(int c)
9
+{
10
+ return (c >= '0' && c <= '9');
11
+}
0 commit comments