Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
regfree()
Release memory allocated for a regular expression
Synopsis:
#include <regex.h> void regfree( regex_t * preg );
Arguments:
- preg
- A pointer to the regex_t object for the regular expression that you want to free; see regcomp().
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
![]() |
This function is in libc.a, but not in libc.so (in order to save space). |
Description:
The regfree() function releases all memory allocated by regcomp() associated with preg.
Examples:
See regcomp().
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
Contributing author:
Henry Spencer. For copyright information, see Third-Party Copyright Notices in this reference.
See also:
regcomp(), regerror(), regexec()
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)
