COHERENT manpages

This page displays the COHERENT manpage for regcomp() [Compile a regular expression into a structure].

List of available manpages
Index


regcomp() -- Regular-Expression Function (libc)

Compile a regular expression into a structure
#include <regexp.h>
regexp *regcomp(expression)
char *expression;

Function regcomp() compiles expression into a structure of type regexp, and
returns a  pointer to  it.  For  details on the  structure regexp,  see the
Lexicon entry  for regexp.h. expression  must be a  regular expression; the
rules that  define a regular expression are described  in the Lexicon entry
regexp.h.

See Also

libc,
regexp.h

Notes

regcomp() calls malloc() to allocate the memory that holds the structure it
creates.  To free this structure, your program must call free().