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 _______________________________________________ Nmh-workers mailing list Nmh-workers(_at_)nongnu(_dot_)org https://lists.nongnu.org/mailman/listinfo/nmh-workers
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [Nmh-workers] fseek(fp, 0, SEEK_CUR)?, Ken Hornstein |
---|---|
Next by Date: | Re: [Nmh-workers] Trailing Spaces on Default repl mhl.reply., Valdis . Kletnieks |
Previous by Thread: | Re: [Nmh-workers] fseek(fp, 0, SEEK_CUR)?, Tom Lane |
Next by Thread: | Re: [Nmh-workers] fseek(fp, 0, SEEK_CUR)?, David Levine |
Indexes: | [Date] [Thread] [Top] [All Lists] |