Eric Blake wrote: > + /* We only need to flush the file if it is not reading or if it is > + seekable. */ > + if ((!freading (fp) || fseeko (fp, 0, SEEK_CUR) == 0) && fflush (fp))
Would it be equivalent to do if ((!freading (fp) || ftello (fp) != -1) && fflush (fp)) ? Bruno -- In memoriam Itzhak Katzenelson <http://en.wikipedia.org/wiki/Itzhak_Katzenelson>