Implementation errors in strtol()

Andrey Chernov ache at nagual.pp.ru
Sun Jan 23 14:30:13 PST 2005


On Mon, Jan 24, 2005 at 12:16:30AM +0200, Giorgos Keramidas wrote:
> If errno is explicitly set (i.e. zeroed) by the calling program
> immediately before strtol(), can we not be sure that it was, in fact,
> strtol() that set it to any non-zero value?

Portable application can't be sure to not get surprise errno values. 
POSIX-conformant application, contrarily, can. Portability and standards 
conformance are different things.

-- 
http://ache.pp.ru/


More information about the freebsd-current mailing list