diff options
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; -} |