home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.3 / StrMatch.3 < prev    next >
Encoding:
Text File  |  1995-07-26  |  2.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh((((3333))))           TTTTccccllll (((( ))))           TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh((((3333))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           Tcl_StringMatch - test whether a string matches a pattern
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.           ####iiiinnnncccclllluuuuddddeeee <<<<ttttccccllll....hhhh>>>>
  15.  
  16.           int
  17.           TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh(_s_t_r_i_n_g, _p_a_t_t_e_r_n)
  18.  
  19.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  20.           char*_s_t_r_i_n_g(in)
  21.           String to test.
  22.  
  23.           char*_p_a_t_t_e_r_n(in)
  24.           Pattern  to  match  against  string.   May  contain  special
  25.           characters from the set *?\[].
  26.      _________________________________________________________________
  27.  
  28.  
  29.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  30.           This utility procedure determines whether a string matches a
  31.           given  pattern.  If it does, then TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh returns 1.
  32.           Otherwise TTTTccccllll____SSSSttttrrrriiiinnnnggggMMMMaaaattttcccchhhh returns 0.  The algorithm used for
  33.           matching  is the same algorithm used in the ``string match''
  34.           Tcl command and is similar to the algorithm used by  the  C-
  35.           shell  for file name matching;  see the Tcl manual entry for
  36.           details.
  37.  
  38.  
  39.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  40.           match, pattern, string
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/10/95)
  64.  
  65.  
  66.  
  67.