Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
regcmp(3) Guardian Native C Library Calls Reference Manual
NOTES
The behavior of this function in locales other than POSIX is undefined.
This function can be called by native processes only.
CAUTIONS
Be sure to free space that the malloc() function has reserved for compiled regular expressions
once it is no longer needed. If this is not done, there is a risk of running out of memory.
RETURN VALUES
On successful completion, the regcmp() function returns a pointer to the compiled regular
expression. Otherwise, it returns a null pointer and errno is set to indicate the error.
ERRORS
If the following condition occurs, the regcmp() function sets errno to the corresponding value:
[ENOMEM] There is insufficient storage space available.
RELATED INFORMATION
Functions: re_comp(3), re_exec(3), regcomp(3), regex(3).
STANDARDS CONFORMANCE
The regcmp() function is defined in the XPG4 Version 2 specification.
5−96 Hewlett-Packard Company 527192-018