home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / ixemul-39.47-env-bin.lha / man / cat3 / fnmatch.0 < prev    next >
Text File  |  1993-12-07  |  2KB  |  67 lines

  1.  
  2. FNMATCH(3)                 UNIX Programmer's Manual                 FNMATCH(3)
  3.  
  4. NNAAMMEE
  5.      ffnnmmaattcchh - match filename or pathname
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<uunniissttdd..hh>>
  9.  
  10.      _i_n_t
  11.      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)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      The ffnnmmaattcchh() function matches patterns according to the rules used by
  15.      the shell.  It checks the string specified by the _s_t_r_i_n_g argument to see
  16.      if it matches the pattern specified by the _p_a_t_t_e_r_n argument.
  17.  
  18.      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
  19.      value of _f_l_a_g_s is the bitwise inclusive OR of any of the following con­
  20.      stants, which are defined in the include file _u_n_i_s_t_d_._h.
  21.  
  22.      FNM_PATHNAME  Slash characters in _s_t_r_i_n_g must be explicitly matched by
  23.                    slashes in _p_a_t_t_e_r_n. If this flag is not set, then slashes
  24.                    are treated as regular characters.
  25.  
  26.      FNM_QUOTE     Every occurrence of a backslash (`\') followed by a charac­
  27.                    ter in _p_a_t_t_e_r_n is replaced by that character.  This is done
  28.                    to negate any special meaning for the character.
  29.  
  30. RREETTUURRNN VVAALLUUEESS
  31.      If _s_t_r_i_n_g matches the pattern specified by _p_a_t_t_e_r_n, then ffnnmmaattcchh() re­
  32.      turns zero.  Otherwise, ffnnmmaattcchh() returns nonzero.
  33.  
  34. SSEEEE AALLSSOO
  35.      sh(1),  glob(3),  wordexp(3),  regexp(3)
  36.  
  37. HHIISSTTOORRYY
  38.      The ffnnmmaattcchh() function is currently under development.
  39.  
  40. BBUUGGSS
  41.      Quotes and slashes in range patterns are not handled correctly.
  42.  
  43.      The pattern `*' matches the empty string, even if FNM_PATHNAME is speci­
  44.      fied.
  45.  
  46. BSD Experimental                April 19, 1991                               1
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.