diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-09-06 00:17:36 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-09-06 08:32:36 +0200 |
commit | 8dd95da35be27c28da9e0d082f3ce02d2200b82a (patch) | |
tree | ff349087b1934fe26b77bcd50d4061f50827c86d /lib/strcase.c | |
parent | 7b66050eaeb6a8dc1c4076ebaaa4437eaba899e8 (diff) | |
download | curl-8dd95da35be27c28da9e0d082f3ce02d2200b82a.tar.gz |
ctype: remove all use of <ctype.h>, use our own versions
Except in the test servers.
Closes #9433
Diffstat (limited to 'lib/strcase.c')
-rw-r--r-- | lib/strcase.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/strcase.c b/lib/strcase.c index f93248520..7f49e7868 100644 --- a/lib/strcase.c +++ b/lib/strcase.c @@ -28,8 +28,6 @@ #include "strcase.h" -static char raw_tolower(char in); - /* Mapping table to go from lowercase to uppercase for plain ASCII.*/ static const unsigned char touppermap[256] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, @@ -79,7 +77,7 @@ char Curl_raw_toupper(char in) /* Portable, consistent tolower. Do not use tolower() because its behavior is altered by the current locale. */ -static char raw_tolower(char in) +char Curl_raw_tolower(char in) { return tolowermap[(unsigned char) in]; } @@ -165,7 +163,7 @@ void Curl_strntolower(char *dest, const char *src, size_t n) return; do { - *dest++ = raw_tolower(*src); + *dest++ = Curl_raw_tolower(*src); } while(*src++ && --n); } |