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

#include <skalibs/bytestr.h>

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