Re: Implementation errors in strtol()

From: Andrey Chernov <ache_at_nagual.pp.ru>
Date: Mon, 24 Jan 2005 01:30:09 +0300
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/
Received on Sun Jan 23 2005 - 21:30:13 UTC

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