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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux