From 37da2899f40661e3e9631e497da8dc59b971cbd0 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 17:07:39 +0000 Subject: 20060303a --- libkern/toupper.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libkern/toupper.c (limited to 'libkern/toupper.c') diff --git a/libkern/toupper.c b/libkern/toupper.c new file mode 100644 index 00000000..4c0b02ac --- /dev/null +++ b/libkern/toupper.c @@ -0,0 +1,16 @@ +toupper(int c) +{ + + if(c < 'a' || c > 'z') + return c; + return (c-'a'+'A'); +} + +tolower(int c) +{ + + if(c < 'A' || c > 'Z') + return c; + return (c-'A'+'a'); +} + -- cgit v1.2.3