home *** CD-ROM | disk | FTP | other *** search
-
- FNMATCH(3) UNIX Programmer's Manual FNMATCH(3)
-
- NNAAMMEE
- ffnnmmaattcchh - match filename or pathname
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<uunniissttdd..hh>>
-
- _i_n_t
- ffnnmmaattcchh(_c_o_n_s_t _c_h_a_r _*_p_a_t_t_e_r_n, _c_o_n_s_t _c_h_a_r _*_s_t_r_i_n_g, _i_n_t _f_l_a_g_s)
-
- DDEESSCCRRIIPPTTIIOONN
- The ffnnmmaattcchh() function matches patterns according to the rules used by
- the shell. It checks the string specified by the _s_t_r_i_n_g argument to see
- if it matches the pattern specified by the _p_a_t_t_e_r_n argument.
-
- The _f_l_a_g_s argument modifies the interpretation of _p_a_t_t_e_r_n and _s_t_r_i_n_g. The
- value of _f_l_a_g_s is the bitwise inclusive OR of any of the following con
- stants, which are defined in the include file _u_n_i_s_t_d_._h.
-
- FNM_PATHNAME Slash characters in _s_t_r_i_n_g must be explicitly matched by
- slashes in _p_a_t_t_e_r_n. If this flag is not set, then slashes
- are treated as regular characters.
-
- FNM_QUOTE Every occurrence of a backslash (`\') followed by a charac
- ter in _p_a_t_t_e_r_n is replaced by that character. This is done
- to negate any special meaning for the character.
-
- RREETTUURRNN VVAALLUUEESS
- If _s_t_r_i_n_g matches the pattern specified by _p_a_t_t_e_r_n, then ffnnmmaattcchh() re
- turns zero. Otherwise, ffnnmmaattcchh() returns nonzero.
-
- SSEEEE AALLSSOO
- sh(1), glob(3), wordexp(3), regexp(3)
-
- HHIISSTTOORRYY
- The ffnnmmaattcchh() function is currently under development.
-
- BBUUGGSS
- Quotes and slashes in range patterns are not handled correctly.
-
- The pattern `*' matches the empty string, even if FNM_PATHNAME is speci
- fied.
-
- BSD Experimental April 19, 1991 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-