Searched refs:pcrule (Results 1 – 1 of 1) sorted by relevance
92 match(const char *pc, char *pcrule) in match() argument94 int n = strlen(pcrule); in match()96 if (pcrule[n - 1] == '*') { in match()98 pcrule[n - 1] = '\0'; in match()102 if (fnmatch(pc, pcrule, FNM_PATHNAME) == 0 || in match()103 fnmatch(pc, pcrule, 0) == 0) in match()107 j = strncmp(pc, pcrule, n - 1); in match()108 pcrule[n - 1] = '*'; in match()