. \" @(#)patcompile.3 1.3 16/01/27 Copyright 1985,1995-2016 J. Schilling . \" Manual Seite fuer patcompile . \"
PATCOMPILE 3 "15. Juli 1988" "J\*org Schilling" "Schily\'s LIBRARY FUNCTIONS"
NAME
patcompile() - compiles a matching pattern
SYNOPSIS
 int patcompile(pattern, length, aux)
 char *pattern;  int length;  int aux[]; 
DESCRIPTION
patcompile() compiles a pattern into an internal form which patmatch (3) can use.

The string at pattern with size length is scanned. The array aux is filled in with state information for patmatch (3). aux should have at least length elements.

RETURNS
Returns 0 if the pattern contains an error.

Other values should be passed to patmatch (3) as the alt argument.

"SEE ALSO
match (1)

For a description ot the regular expressions.

NOTES
The pattern matching functions are based on ones presented by Martin Richards in "A Compact Function for Regular Expression Pattern Matching", Software-Practice and Experience vol 9, 527-534 (1979).