Skip to content

Instantly share code, notes, and snippets.

@cynx
Created June 10, 2014 02:21
Show Gist options
  • Save cynx/8f84c3cdcead13f23c65 to your computer and use it in GitHub Desktop.
Save cynx/8f84c3cdcead13f23c65 to your computer and use it in GitHub Desktop.
C function to convert string to lower case
/* convert C to lower case
int lcase (int c)
{
if (c >= 'A' && C <= 'Z')
retunr c + 'a' - 'A';
else
return c;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment