summaryrefslogtreecommitdiff
path: root/src/libstddjb/case_uppers.c
blob: cf2875ad84966031279a91ce37cdfa0d49028063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* ISC license. */

#include <skalibs/bytestr.h>

void case_uppers (register char *s)
{
  register unsigned char const d = 'a' - 'A' ;
  while (*s)
  {
    if (('a' <= *s) && (*s <= 'z')) *s -= d ;
    ++s ;
  }
}