visualtest/src/harness_argparser.c
/* String compare s1 and s2 ignoring leading hyphens */
String compare s1 and s2 ignoring leading hyphens
String compare s1 and s2 ignoring leading hyphens
static int
StrCaseCmpIgnoreHyphen(const char* s1, const char* s2)
{
    if(!s1)
        s1 = "";
    if(!s2)
        s2 = "";
    while(*s1 == '-')
        s1++;
    while(*s2 == '-')
        s2++;
    return SDL_strcasecmp(s1, s2);
}
static int StrCaseCmpIgnoreHyphen ( const char * s1 , const char * s2 ) { if ( ! s1 ) s1 = " " ; if ( ! s2 ) s2 = " " ; while ( * s1 == ' ' ) s1 ++ ; while ( * s2 == ' ' ) s2 ++ ; return SDL_strcasecmp ( s1 , s2 ) ; }
String compare s1 and s2 ignoring leading hyphens
String compare s1 and s2 ignoring leading hyphens
/* treat NULL pointer as empty strings */