diff options
Diffstat (limited to 'userland/libc/ctype/isalnum.c')
-rw-r--r-- | userland/libc/ctype/isalnum.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/userland/libc/ctype/isalnum.c b/userland/libc/ctype/isalnum.c new file mode 100644 index 0000000..870728d --- /dev/null +++ b/userland/libc/ctype/isalnum.c @@ -0,0 +1,6 @@ +#include <ctype.h> + +// This is probably the most useless libc function I have seen so far. +int isalnum(int c) { + return isalpha(c) || isdigit(c); +} |