[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions , Volume 2


regfree Subroutine

Purpose

Frees any memory allocated by the regcomp subroutine associated with the Preg parameter.

Library

Standard C Library (libc. a)

Syntax

#include <regex.h>


void regfree ( Preg)
regex_t *Preg;

Description

The regfree subroutine frees any memory allocated by the regcomp subroutine associated with the Preg parameter. An expression defined by the Preg parameter is no longer treated as a compiled basic or extended regular expression after it is given to the regfree subroutine.

Parameters


Preg Structure containing the compiled output of the regcomp subroutine. Memory associated with this structure is freed by the regfree subroutine.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

The regcomp (regcomp Subroutine) subroutine, regerror (regerror Subroutine) subroutine, regexec (regexec Subroutine) subroutine.

Subroutines Overview and Understanding Internationalized Regular Expression Subroutines in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]