Explain a regular expression error code
#include <regex.h> size_t regerror( int err, const regex_t * reg, char * buf, size_t len );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
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.
See regcomp().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
Henry Spencer. For license information, see Licensing information in Typographical Conventions, Support, and Licensing.