| 116 |
\fIpreg\fP structure is filled in on success, and one member of the structure |
\fIpreg\fP structure is filled in on success, and one member of the structure |
| 117 |
is public: \fIre_nsub\fP contains the number of capturing subpatterns in |
is public: \fIre_nsub\fP contains the number of capturing subpatterns in |
| 118 |
the regular expression. Various error codes are defined in the header file. |
the regular expression. Various error codes are defined in the header file. |
| 119 |
|
.P |
| 120 |
|
NOTE: If the yield of \fBregcomp()\fP is non-zero, you must not attempt to |
| 121 |
|
use the contents of the \fIpreg\fP structure. If, for example, you pass it to |
| 122 |
|
\fBregexec()\fP, the result is undefined and your program is likely to crash. |
| 123 |
. |
. |
| 124 |
. |
. |
| 125 |
.SH "MATCHING NEWLINE CHARACTERS" |
.SH "MATCHING NEWLINE CHARACTERS" |
| 243 |
.rs |
.rs |
| 244 |
.sp |
.sp |
| 245 |
.nf |
.nf |
| 246 |
Last updated: 11 March 2009 |
Last updated: 15 August 2009 |
| 247 |
Copyright (c) 1997-2009 University of Cambridge. |
Copyright (c) 1997-2009 University of Cambridge. |
| 248 |
.fi |
.fi |