|
|
1.1 ! root 1: ! 2: ! 3: pnmatch() String Function pnmatch() ! 4: ! 5: ! 6: ! 7: ! 8: Match string pattern ! 9: ! 10: iinntt ppnnmmaattcchh(_s_t_r_i_n_g, _p_a_t_t_e_r_n, _f_l_a_g) ! 11: cchhaarr *_s_t_r_i_n_g, *_p_a_t_t_e_r_n; iinntt _f_l_a_g; ! 12: ! 13: pnmatch matches string with pattern, which is a regular expres- ! 14: sion. The shell sh uses patterns for file name expansion and ! 15: case statement expressions. ! 16: ! 17: pnmatch returns one if pattern matches string, and zero if it ! 18: does not. Each character in pattern must exactly match a charac- ! 19: ter in string; however, the wildcards `*', `?', `[', and `]' can ! 20: be used in pattern to expand the range of matching. ! 21: ! 22: flag must be either zero or one: zero means that pattern must ! 23: match string exactly, whereas one means that pattern can match ! 24: any part of string. In the latter case, the wildcards `^' and ! 25: `$' can also be used in pattern. ! 26: ! 27: ***** Example ***** ! 28: ! 29: For an example of this function, see the entry for ffggeettss. ! 30: ! 31: ***** See Also ***** ! 32: ! 33: egrep, general functions, grep, sh ! 34: ! 35: ***** Notes ***** ! 36: ! 37: flag must be zero or one for pnmatch to yield predictable ! 38: results. ! 39: ! 40: pnmatch is a more powerful version of the ANSI functions strstr ! 41: and strcmp. ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.