lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV How do I clear errno?


From: Natarajan Krishnaswami
Subject: LYNX-DEV How do I clear errno?
Date: Thu, 2 Apr 1998 18:57:57 -0500

C.J.LAWSON writes:
 > 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?

Why do you want to clear errno?  It is only meaningful to check errno if an
error is reported, in which case it will already have been set to the
appropriate value.

clearerr is necessary since ferror is the only way you can detect errors on a
stream operation.  


N.

reply via email to

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