Re: Implementation errors in strtol()

From: Andrey Chernov <ache_at_nagual.pp.ru>
Date: Sat, 22 Jan 2005 20:35:26 +0300
On Sat, Jan 22, 2005 at 08:17:43PM +0300, Andrey Chernov wrote:
> even after checking that endptr moved can't check just

I mean that another case still possible where errno check placed _before_ 
endptr checking, to detect, say, wrong user-entered "base" by EINVAL. It 
can't be detected by portable application in 100% cases, because EINVAL 
can be returned in other cases too.

-- 
http://ache.pp.ru/
Received on Sat Jan 22 2005 - 16:35:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:26 UTC