nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] fseek(fp, 0, SEEK_CUR)?


From: David Levine
Subject: Re: [Nmh-workers] fseek(fp, 0, SEEK_CUR)?
Date: Mon, 14 Jan 2013 21:43:52 -0500

Ken wrote:

> Hrm.  According to the man page, a successful call to
> fseek() clears the eof indicator and undoes any ungetc()
> call.  Not sure we want the latter, but maybe they're
> trying to do the former?  fp is opened using fdopen(..,
> "w+"), so I could see it being at EOF.

That makes sense.  There is an ferror() check near the
end.

David



reply via email to

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