about summary refs log tree commit diff
path: root/src/libstddjb/case_lowerb.c
blob: 7cc5331acabad88e9db23383ce098ce7ec4fbd3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <ctype.h>

#include <skalibs/bytestr.h>

void case_lowerb (char *s, size_t len)
{
  while (len--)
  {
    int c = tolower(*s) ;
    *s++ = (unsigned char)c ;
  }
}