plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

s_tolower.c (212B)


      1 #include <u.h>
      2 #include <libc.h>
      3 #include <ctype.h>
      4 #include "libString.h"
      5 
      6 
      7 /* convert String to lower case */
      8 void
      9 s_tolower(String *sp)
     10 {
     11 	char *cp;
     12 
     13 	for(cp=sp->ptr; *cp; cp++)
     14 		*cp = tolower((uchar)*cp);
     15 }