1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* ISC license. */ #include <sys/types.h> #include <skalibs/bytestr.h> void case_lowerb (char *s, size_t len) { unsigned char const d = 'a' - 'A' ; while (len--) { if (('A' <= *s) && (*s <= 'Z')) *s += d ; ++s ; } }