www.delorie.com/gnu/docs/regex/regex_53.html   search  
 
Buy the book!


Regex

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.1.9 Freeing GNU Pattern Buffers

To free any allocated fields of a pattern buffer, you can use the POSIX function described in 7.2.6 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 7.1.2 GNU Regular Expression Compiling) before passing it to a matching or searching function.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003