File:  [MW Coherent from dump] / coherent / a / usr / man / ALL / pnmatch
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



pnmatch()                String Function                pnmatch()




Match string pattern

iinntt ppnnmmaattcchh(_s_t_r_i_n_g, _p_a_t_t_e_r_n, _f_l_a_g)
cchhaarr *_s_t_r_i_n_g, *_p_a_t_t_e_r_n; iinntt _f_l_a_g;

pnmatch matches  string with pattern, which  is a regular expres-
sion.  The  shell sh  uses patterns  for file name  expansion and
case statement expressions.

pnmatch returns  one if  pattern matches  string, and zero  if it
does not.  Each character in pattern must exactly match a charac-
ter in string; however, the  wildcards `*', `?', `[', and `]' can
be used in pattern to expand the range of matching.

flag must  be either  zero or one:  zero means that  pattern must
match string  exactly, whereas one  means that pattern  can match
any part  of string.  In  the latter case, the  wildcards `^' and
`$' can also be used in pattern.

***** Example *****

For an example of this function, see the entry for ffggeettss.

***** See Also *****

egrep, general functions, grep, sh

***** Notes *****

flag  must  be  zero or  one  for  pnmatch  to yield  predictable
results.

pnmatch is  a more powerful version of  the ANSI functions strstr
and strcmp.






















COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.