tag 408304 patch
thanks

On Wed, Jan 24, 2007 at 08:02:16PM +0100, Oliver Lange wrote:
> Package: manpages
> Version: 2.39-1
> 
> Hello everyone,
> 
> The manpage (3) for strtof (strtod) says:
> 
>   #define _XOPEN_SOURCE=600 /* or #define _ISOC99_SOURCE */
>   #include <stdlib.h>
> 
> First, the former define contains a typo.
> 
> is:
> 
>   #define _XOPEN_SOURCE=600
>   #include <stdlib.h>
> 
> should be:
> 
>   #define _XOPEN_SOURCE 600
>   #include <stdlib.h>
You're right, good eyes.  I checked that no other manpages (in 2.39) have this
problem, and made a patch to fix it.

> Second, none of these two defines activate the strtof() and
> strtold() protos. According to <stdlib.h>, __USE_ISOC99 should
> be defined instead, as specified in <features.h>, i.e.:
No; Michael corrected me, so I'll pass on the knowledge.  The __USE_* macros
aren't to be used directly; only those mentioned in feature_test_macros.7 are
intended as exposed interfaces (perhaps this manpage should say so explicitly?)

Are you sure you #defined the FTM before including any headers, directly or
indirectly?

Justin

--- -   2007-01-24 15:45:21.608093208 -0500
+++ /tmp/strtod.3       2007-01-24 15:43:45.000000000 -0500
@@ -48,7 +48,7 @@
 .sp
 .BI "double strtod(const char *" nptr ", char **" endptr );
 .sp
-.BR "#define _XOPEN_SOURCE=600" "   /* or #define _ISOC99_SOURCE */"
+.BR "#define _XOPEN_SOURCE 600" "   /* or #define _ISOC99_SOURCE */"
 .br
 .B #include <stdlib.h>
 .sp


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to