blob: 78ece8f4702026fde31a07acbec22b822e7c226d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* ISC license. */
#include <skalibs/bytestr.h>
void case_upperb (char *s, size_t len)
{
unsigned char const d = 'a' - 'A' ;
while (len--)
{
if (('a' <= *s) && (*s <= 'z')) *s -= d ;
++s ;
}
}
|