skalibs

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

case_lowers.c (178B)


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