Open System Services Library Calls Reference Manual (G06.28+, H06.05+)

OSS Library Calls (n - r) regcmp(3)
expressions are allowed. |
(...) ||
Groups a regular expression. A regular expression in parentheses can be fol- |
lowed by an operator like *, +, or {}. These operators have the same effect on a |
group regular expression as they do on a single character. |
All of these regular expression symbols are special characters. To use them as themselves, you |
must escape them by preceding them with a backslash. |
NOTES
|
The behavior of this function in locales other than POSIX is undened. |
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 insufcient storage space available. |
RELATED INFORMATION
|
Functions: re_comp(3), re_exec(3), regcomp(3), regex(3).|
STANDARDS CONFORMANCE
|
The regcmp() function is dened in the XPG4 Version 2 specication. |
527187-007 Hewlett-Packard Company 589