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