We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1db8d97 commit 1e114afCopy full SHA for 1e114af
0x02-functions_nested_loops/4-isalpha.c
@@ -0,0 +1,20 @@
1
+#include "main.h"
2
+
3
+/**
4
+ * _isalpha - Checks if the char is alpha.
5
+ *
6
+ * @c: The char to be checked.
7
8
+ * Return: return (1) if c is letter, (0) otherwise.
9
+ */
10
+int _isalpha(int c)
11
+{
12
+ if ((c >= 97 && c <= 122) || (c >= 65 && c <= 90))
13
+ {
14
+ return (1);
15
+ }
16
+ else
17
18
+ return (0);
19
20
+}
0x02-functions_nested_loops/main.h
@@ -2,3 +2,4 @@ int _putchar(char);
void print_alphabet(void);
void print_alphabet_x10(void);
int _islower(int);
+int _isalpha(int);
0 commit comments