diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2024-05-22 13:00:41 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2024-05-22 13:00:41 -0400 |
commit | ace65b453151845bc361f21f3e5b651c35f9f126 (patch) | |
tree | 262ebd29b0ca1d8584f0b6f1efa7a00d9f4f3e43 /lib/toupper.c | |
parent | f004c1ade8d617a82cea2fe249434cccb47a2358 (diff) | |
download | jove-kernel-ace65b453151845bc361f21f3e5b651c35f9f126.tar.gz jove-kernel-ace65b453151845bc361f21f3e5b651c35f9f126.tar.bz2 jove-kernel-ace65b453151845bc361f21f3e5b651c35f9f126.zip |
Diffstat (limited to 'lib/toupper.c')
-rw-r--r-- | lib/toupper.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/toupper.c b/lib/toupper.c deleted file mode 100644 index 807eb38..0000000 --- a/lib/toupper.c +++ /dev/null @@ -1,26 +0,0 @@ -#include "string.h" - -int -toupper(int c) -{ - if(c >= 'a' && c <= 'z') - c -= ('a' - 'A'); - return c; -} - -char* -stoupper(char *s) -{ - char *o = s; - for(; *s != 0; s++) - *s = toupper(*s); - return o; -} - -char* -sntoupper(char *s, size_t limit) -{ - for(size_t i = 0; i < limit; i++) - s[i] = toupper(s[i]); - return s; -} |