From 8a0efa53e44919bcf5ccb1d3353618a82afdf8bc Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 17 Feb 2000 19:39:52 +0000 Subject: import newlib-2000-02-17 snapshot --- newlib/libc/ctype/_toupper.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 newlib/libc/ctype/_toupper.c (limited to 'newlib/libc/ctype/_toupper.c') diff --git a/newlib/libc/ctype/_toupper.c b/newlib/libc/ctype/_toupper.c new file mode 100644 index 000000000..db4e00dd0 --- /dev/null +++ b/newlib/libc/ctype/_toupper.c @@ -0,0 +1,9 @@ +#include <_ansi.h> +#include + +#undef _toupper +int +_DEFUN(_toupper,(c),int c) +{ + return islower(c) ? c - 'a' + 'A' : c; +} -- cgit v1.2.3