regfree()

free memory used by regular expression 

Function


SYNOPSIS

#include <regex.h>

void regfree(regex_t *preg);


DESCRIPTION

The regfree() function frees any memory allocated by regcomp() associated with preg. If the preg argument to regfree() is not a compiled regular expression returned by regcomp(), the result is undefined. A preg is no longer treated as a compiled regular expression after it is given to regfree().


PARAMETERS

preg 

A pointer to a compiled regular expression that a previous call to regcomp() initialized.


RETURN VALUES

None.


CONFORMANCE

POSIX.2 (1992).


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
regcomp(), regerror(), regexec()


PTC MKS Toolkit 10.4 Documentation Build 39.