src/misc.c
/** returns true if line starts with prefix, false if it does not */
returns true if line starts with prefix, false if it does not
returns true if line starts with prefix false if it does not
bool strStartsWith(const char *line, const char *prefix)
{
    for ( ; *line != '\0' && *prefix != '\0' ; line++, prefix++) {
        if (*line != *prefix) {
            return false;
        }
    }
    return *prefix == '\0';
}
bool strStartsWith ( const char * line , const char * prefix ) { for ( ; * line != ' \0 ' && * prefix != ' \0 ' ; line ++ , prefix ++ ) { if ( * line != * prefix ) { return false ; } } return * prefix == ' \0 ' ; }
returns true if line starts with prefix, false if it does not
returns true if line starts with prefix false if it does not