diff options
Diffstat (limited to 'libc/ctype/_tolower.c')
-rw-r--r-- | libc/ctype/_tolower.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/ctype/_tolower.c b/libc/ctype/_tolower.c new file mode 100644 index 0000000..968dcf7 --- /dev/null +++ b/libc/ctype/_tolower.c @@ -0,0 +1,9 @@ +#include <_ansi.h> +#include <ctype.h> + +#undef _tolower +int +_DEFUN(_tolower,(c),int c) +{ + return isupper(c) ? (c) - 'A' + 'a' : c; +} |