summaryrefslogtreecommitdiff
path: root/test/fnmatch.awk
blob: b3717549e794d5477290f9e8be725cb3ba8d9de8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
@load "fnmatch"

BEGIN {
	# can't print the values; they vary from system to system
	for (i in FNM)
		printf("\"%s\" is an element in FNM\n", i)
	# can't even print this
	# print "FNM_NOMATCH =", FNM_NOMATCH 

	printf("fnmatch(\"*.a\", \"foo.a\", 0)  = %d\n", fnmatch("*.a", "foo.a", 0) )
	if (fnmatch("*.a", "foo.c", 0) == FNM_NOMATCH)
		printf("fnmatch(\"*.a\", \"foo.c\", 0) == FNM_NOMATCH\n")
}