diff options
Diffstat (limited to 'userland/libc/ctype/isalpha.c')
-rw-r--r-- | userland/libc/ctype/isalpha.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/userland/libc/ctype/isalpha.c b/userland/libc/ctype/isalpha.c new file mode 100644 index 0000000..130f493 --- /dev/null +++ b/userland/libc/ctype/isalpha.c @@ -0,0 +1,4 @@ +#include <ctype.h> + +// https://pubs.opengroup.org/onlinepubs/9699919799/functions/isalpha.html +int isalpha(int c) { return (('A' <= toupper(c)) && ('Z' >= toupper(c))); } |