Revision: 424
http://vcs.pcre.org/viewvc?view=rev&revision=424
Author: ph10
Date: 2009-08-15 19:45:00 +0100 (Sat, 15 Aug 2009)
Log Message:
-----------
Add warning comment to pcreposix doc.
Modified Paths:
--------------
code/trunk/doc/pcreposix.3
Modified: code/trunk/doc/pcreposix.3
===================================================================
--- code/trunk/doc/pcreposix.3 2009-08-15 18:17:31 UTC (rev 423)
+++ code/trunk/doc/pcreposix.3 2009-08-15 18:45:00 UTC (rev 424)
@@ -116,6 +116,10 @@
\fIpreg\fP structure is filled in on success, and one member of the structure
is public: \fIre_nsub\fP contains the number of capturing subpatterns in
the regular expression. Various error codes are defined in the header file.
+.P
+NOTE: If the yield of \fBregcomp()\fP is non-zero, you must not attempt to
+use the contents of the \fIpreg\fP structure. If, for example, you pass it to
+\fBregexec()\fP, the result is undefined and your program is likely to crash.
.
.
.SH "MATCHING NEWLINE CHARACTERS"
@@ -239,6 +243,6 @@
.rs
.sp
.nf
-Last updated: 11 March 2009
+Last updated: 15 August 2009
Copyright (c) 1997-2009 University of Cambridge.
.fi