Implementation errors in strtol()
Andrey Chernov
ache at nagual.pp.ru
Sat Jan 22 09:35:28 PST 2005
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/
More information about the freebsd-current
mailing list