git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
nicer output
[tridge/junkcode.git]
/
fn.c
1
#include <stdlib.h>
2
#include <fnmatch.h>
3
4
int main()
5
{
6
char *pattern = "a/*/e";
7
char *path = "a/b/c/d/e";
8
int i;
9
10
i = fnmatch(pattern,path,0);
11
printf("fnmatch w/out FNM_PATHNAME: %d\n",i);
12
i = fnmatch(pattern,path,FNM_PATHNAME);
13
printf("fnmatch w/ FNM_PATHNAME: %d\n",i);
14
return 0;
15
}