From ace65b453151845bc361f21f3e5b651c35f9f126 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 22 May 2024 13:00:41 -0400 Subject: massive refactor for mp and organization --- lib/toupper.c | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 lib/toupper.c (limited to 'lib/toupper.c') 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; -} -- cgit v1.2.1