Subversion Repositories eduke32

Rev

Rev 4766 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4766 Rev 4925
Line 50... Line 50...
50
50
51
extern char toupperlookup[256];
51
extern char toupperlookup[256];
52
static inline int32_t filnamcmp(const char *j, const char *i)
52
static inline int32_t filnamcmp(const char *j, const char *i)
53
{
53
{
54
    // If we reach at the end of both strings, we are done
54
    // If we reach at the end of both strings, we are done
55
    while (*j && (toupperlookup[*i] == toupperlookup[*j]))
55
    while (*i && *j && (toupperlookup[*i] == toupperlookup[*j]))
56
        i++, j++;
56
        i++, j++;
57
    return *i != '\0';
57
    return *i != '\0' || *j != '\0';
58
}
58
}
59
extern int32_t wildmatch(const char *match, const char *wild);
59
extern int32_t wildmatch(const char *match, const char *wild);
60
60
61
#ifdef __cplusplus
61
#ifdef __cplusplus
62
}
62
}