To free any allocated fields of a pattern buffer, you can use the
POSIX function described in section Freeing POSIX Pattern Buffers,
since the type regex_t
---the type for POSIX pattern
buffers--is equivalent to the type re_pattern_buffer
. After
freeing a pattern buffer, you need to again compile a regular expression
in it (see section GNU Regular Expression Compiling) before passing it to
a matching or searching function.
Go to the first, previous, next, last section, table of contents.