4 int main(int argc
, char **argv
)
7 for (i
= 2; i
< argc
; i
++) {
9 die("Forward slash is not allowed at the beginning of the\n"
10 "pattern because Windows does not like it. Use `XXX/' instead.");
11 else if (!strncmp(argv
[i
], "XXX/", 4))
14 if (!strcmp(argv
[1], "wildmatch"))
15 return !!wildmatch(argv
[3], argv
[2], 0);
16 else if (!strcmp(argv
[1], "iwildmatch"))
17 return !!wildmatch(argv
[3], argv
[2], FNM_CASEFOLD
);
18 else if (!strcmp(argv
[1], "fnmatch"))
19 return !!fnmatch(argv
[3], argv
[2], FNM_PATHNAME
);