Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/regerror.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/regerror.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/regerror.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/regerror.html on line 8
Explain a regular expression error code
#include <regex.h>
size_t regerror( int err,
const regex_t * reg,
char * buf,
size_t len );
- err
- The value returned by a previous call to
regcomp()
or
regexec().
- reg
- A pointer to the regex_t object for the regular expression
that you provided to the failed call to
regcomp() or regexec().
- buf
- A pointer to a buffer where the function can store the explanation.
- len
- The length of the buffer, in characters.
libc
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.
See regcomp().
POSIX 1003.1
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
Henry Spencer. For copyright information, see
Third-Party Copyright Notices
in this reference.
regcomp(),
regexec(),
regfree()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/r/regerror.html on line 152
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/r/regerror.html on line 152