]>
Commit | Line | Data |
---|---|---|
feabcc17 NTND |
1 | #include "cache.h" |
2 | #include "wildmatch.h" | |
3 | ||
4 | int main(int argc, char **argv) | |
5 | { | |
6 | if (!strcmp(argv[1], "wildmatch")) | |
9b4edc0a | 7 | return !!wildmatch(argv[3], argv[2], 0); |
feabcc17 | 8 | else if (!strcmp(argv[1], "iwildmatch")) |
9b4edc0a | 9 | return !!wildmatch(argv[3], argv[2], FNM_CASEFOLD); |
feabcc17 NTND |
10 | else if (!strcmp(argv[1], "fnmatch")) |
11 | return !!fnmatch(argv[3], argv[2], FNM_PATHNAME); | |
12 | else | |
13 | return 1; | |
14 | } |