Print this page
1209 fnmatch(3C) should mention FNM_IGNORECASE
Reviewed by: Marcel Telka <marcel@telka.sk>
@@ -30,10 +30,21 @@
If not set, the slash character is treated as an
ordinary character.
+ FNM_IGNORECASE
+ If set, the string will be transliterated to lower
+ case before doing the actual match. This
+ transliteration is done using towlower_l(3C), using
+ the locale of the current thread. If no locale is
+ set, then the global locale is used instead.
+
+ If not set, the match will use string with no
+ changes, making the match case-sensitive.
+
+
FNM_NOESCAPE
If not set, a backslash character (\) in pattern
followed by any other character will match that
second character in string. In particular, "\\" will
match a backslash in string.
@@ -55,13 +66,13 @@
o If FNM_PATHNAME is not set, a period is
"leading" only if it is the first
character of string.
+ If not set, no special restrictions are placed on
+ matching a period.
- If not set, no special restrictions are placed on matching a period.
-
RETURN VALUES
If string matches the pattern specified by pattern, then fnmatch()
returns 0. If there is no match, fnmatch() returns FNM_NOMATCH, which
is defined in the header <fnmatch.h>. If an error occurs, fnmatch()
returns another non-zero value.
@@ -108,6 +119,6 @@
find(1), pax(1), glob(3C), setlocale(3C), wordexp(3C), attributes(5),
fnmatch(5), standards(5)
- July 24, 2002 FNMATCH(3C)
+ June 6, 2015 FNMATCH(3C)