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: Thu, 2 Apr 1998 17:53:09 -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? 
generally one doesn't set errno (since it should only be tested after
a failure, e.g., a -1 return).  Also, some odd implementations (such
as VAX C) didn't allow you to do this, since it may be a macro that
evaluates to a function call (non-standard, but predating the standard).
  
>       Thanks  
>  
>               Jonathan  


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

reply via email to

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