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

#include <skalibs/bytestr.h>

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