added strlower()

This commit is contained in:
dickelbeck
2007-12-22 07:17:22 +00:00
parent e35e2eac8d
commit 467d9d3692
2 changed files with 17 additions and 0 deletions
+16
View File
@@ -372,3 +372,19 @@ char* strupper( char* Text )
return Text;
}
/********************************/
char* strlower( char* text )
/********************************/
{
char* start = text;
while( *text )
{
if( *text >= 'A' && *text <= 'Z' )
*text -= 'A' - 'a';
text++;
}
return start;
}