Merge branch 'km/send-email-compose-encoding' into next
[git/mjg.git] / test-wildmatch.c
blob74c08644eebbea411dce0603d7c87f144d0e1446
1 #include "cache.h"
2 #include "wildmatch.h"
4 int main(int argc, char **argv)
6 if (!strcmp(argv[1], "wildmatch"))
7 return !!wildmatch(argv[3], argv[2], 0);
8 else if (!strcmp(argv[1], "iwildmatch"))
9 return !!wildmatch(argv[3], argv[2], FNM_CASEFOLD);
10 else if (!strcmp(argv[1], "fnmatch"))
11 return !!fnmatch(argv[3], argv[2], FNM_PATHNAME);
12 else
13 return 1;