Thread (1 message) 1 message, 1 author, 2016-05-09

Re: strtod(3) manual page not clear on error handling when endptr is null

From: Michael Kerrisk (man-pages) <hidden>
Date: 2016-05-09 20:54:51

Possibly related (same subject, not in this thread)

Hello Ed,

On 04/28/2016 06:31 PM, Ed Avis wrote:
strtod(3) says:

If no conversion is performed, zero is returned and the value of nptr
is stored in the location referenced by endptr.

This surely can't be the case if endptr is null.  I believe that the
behaviour is more like


If no conversion is performed, zero is returned, and (unless endptr
is null) the value of nptr is stored in the location referenced by
endptr.
Agreed. Page corrected.

Thanks,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help