|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Explain a regular expression error code
#include <regex.h> size_t regerror( int err, const regex_t * reg, char * buf, size_t len );
- The value returned by a previous call to regcomp() or regexec().
- A pointer to the regex_t object for the regular expression that you provided to the failed call to regcomp() or regexec().
- A pointer to a buffer where the function can store the explanation.
- The length of the buffer, in characters.
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).|
The regerror() function provides a string explaining an error code returned by regcomp() or regexec(). The string is copied into buf for up to len characters.
The number of characters copied into the buffer.
Henry Spencer. For copyright information, see Third-Party Copyright Notices in this reference.