diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-06-24 15:06:20 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-06-24 15:06:20 +1000 |
commit | 5e8158245446028d86edf3a166217eda4a78ba47 (patch) | |
tree | 78a410b384fdcee4ca3bda9a782e2c124cffb2d9 /libc/test/run-ctype-test.c | |
parent | 3cafe0e80b6f57115bc059e26f11c5d613112984 (diff) | |
download | skiboot-5e8158245446028d86edf3a166217eda4a78ba47.zip skiboot-5e8158245446028d86edf3a166217eda4a78ba47.tar.gz skiboot-5e8158245446028d86edf3a166217eda4a78ba47.tar.bz2 |
add tests for libc tolower() and toupper()
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libc/test/run-ctype-test.c')
-rw-r--r-- | libc/test/run-ctype-test.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libc/test/run-ctype-test.c b/libc/test/run-ctype-test.c index 999292b..bbe91d3 100644 --- a/libc/test/run-ctype-test.c +++ b/libc/test/run-ctype-test.c @@ -35,6 +35,8 @@ int skiboot_isdigit(int ch); int skiboot_isprint(int ch); int skiboot_isspace(int ch); int skiboot_isxdigit(int ch); +int skiboot_tolower(int ch); +int skiboot_toupper(int ch); int skiboot_isdigit(int ch) { @@ -55,3 +57,13 @@ int skiboot_isxdigit(int ch) { return isxdigit(ch); } + +int skiboot_tolower(int ch) +{ + return tolower(ch); +} + +int skiboot_toupper(int ch) +{ + return toupper(ch); +} |