Skip to content

Instantly share code, notes, and snippets.

@zhoukuo
Created July 13, 2012 03:51
Show Gist options
  • Save zhoukuo/3102620 to your computer and use it in GitHub Desktop.
Save zhoukuo/3102620 to your computer and use it in GitHub Desktop.
convert string to lowercase
/* use tolower() to convert string */
#include <ctype.h>
char* strlwr(char *s)
{
char *d = s;
while(*d)
*d++ = tolower(*d);
return s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment