]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* doc/autoconf.texi (Function Portability): Add notes on sscanf
authorKevin Ryde <user42@zip.com.au>
Mon, 17 Dec 2001 23:25:55 +0000 (23:25 +0000)
committerKevin Ryde <user42@zip.com.au>
Mon, 17 Dec 2001 23:25:55 +0000 (23:25 +0000)
sometimes needing writable input.

doc/autoconf.texi

index 88b4fc849b5b8882ab10ad72263e95bec4f95a7c..5c4d1fb5647c17fe693ad37c016f167e62c974d3 100644 (file)
@@ -3342,6 +3342,17 @@ The ISO C standard says @code{sprintf} and @code{vsprintf} return the
 number of bytes written, but on some old systems (SunOS 4 for
 instance) they return the buffer pointer instead.
 
+@item @code{sscanf}
+@c @fuindex sscanf
+@prindex @code{sscanf}
+On various old systems, e.g. HP-UX 9, @code{sscanf} requires that its
+input string is writable (though it doesn't actually change it).  This
+can be a problem when using @command{gcc} since it normally puts
+constant strings in read-only memory
+(@pxref{Incompatibilities,Incompatibilities of GCC,,gcc,Using and
+Porting the GNU Compiler Collection}).  Apparently in some cases even
+having format strings read-only can be a problem.
+
 @item @code{unlink}
 @c @fuindex unlink
 @prindex @code{unlink}