Commit 467d9d36 authored by dickelbeck's avatar dickelbeck
Browse files

added strlower()

parent e35e2eac
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -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;
}
+1 −0
Original line number Diff line number Diff line
@@ -491,6 +491,7 @@ wxString FindKicadFile( const wxString& shortname );
/* STRING.CPP */
/*************/
char*       strupper( char* Text );
char*       strlower( char* Text );

int         ReadDelimitedText( char* dest, char* source, int NbMaxChar );