Commit 467d9d36 authored by dickelbeck's avatar dickelbeck

added strlower()

parent e35e2eac
...@@ -372,3 +372,19 @@ char* strupper( char* Text ) ...@@ -372,3 +372,19 @@ char* strupper( char* Text )
return Text; return Text;
} }
/********************************/
char* strlower( char* text )
/********************************/
{
char* start = text;
while( *text )
{
if( *text >= 'A' && *text <= 'Z' )
*text -= 'A' - 'a';
text++;
}
return start;
}
...@@ -491,6 +491,7 @@ wxString FindKicadFile( const wxString& shortname ); ...@@ -491,6 +491,7 @@ wxString FindKicadFile( const wxString& shortname );
/* STRING.CPP */ /* STRING.CPP */
/*************/ /*************/
char* strupper( char* Text ); char* strupper( char* Text );
char* strlower( char* Text );
int ReadDelimitedText( char* dest, char* source, int NbMaxChar ); int ReadDelimitedText( char* dest, char* source, int NbMaxChar );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment