lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV How do I clear errno?


From: T.E.Dickey
Subject: Re: LYNX-DEV How do I clear errno?
Date: Sat, 4 Apr 1998 07:08:23 -0500 (EST)

> 
> >  
> > I know this is not really 100% Lynx relevant ... but, how on earth does 
> > one clear errno after say a failed strtol () .. clearerr is to be 
> > associated with a file pointer? 
>  
> errno = 0; 
>  
> But as said elsewhere, no-one would normally do this; you may even find that 
> it becomes set by library calls, with no error propagated to the top level. 
not even that - for VAX C (there's some workaround in vile, for example),
DEC did something like this

        #define errno  vaxc$errno()

and you cannot assign to that.

-- 
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]