Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)
Guardian Native C Library Calls (n - r) re_comp(3)
RETURN VALUES
When the re_comp() function successfully converts the string pointed to by the re_string
parameter, it returns a null pointer. Otherwise, it returns a pointer to an error message string.
ERRORS
When the re_comp() function does not successfully compile the regular expression string
pointed to by the re_string parameter, it returns a pointer to one of the following error messages:
no regular expression compiled
no previous regular expression compiled
backreference to non-existing subexpression
bad range in bracket expression []
[] imbalance
* not preceded by valid RE
\{\} not preceded by valid RE
bad value in \{\}
imbalanced \(\) - unmatched \)
imbalanced \(\) - unmatched \(
trailing \ in pattern
RELATED INFORMATION
Functions: re_exec(3), regcmp(3), regexec(3).
STANDARDS CONFORMANCE
The re_comp() function is defined in the XPG4 Version 2 specification.
527192-007 Hewlett-Packard Company 5−61