skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

case_lowerb.c (193B)


      1 /* ISC license. */
      2 
      3 #include <ctype.h>
      4 
      5 #include <skalibs/bytestr.h>
      6 
      7 void case_lowerb (char *s, size_t len)
      8 {
      9   while (len--)
     10   {
     11     int c = tolower(*s) ;
     12     *s++ = (unsigned char)c ;
     13   }
     14 }