Eric Blake wrote: > I'm still worried, though, that after using > rpl_fflush/rpl_fseek, will fread/fgetc pick up at the correct character? > I hope not to rewrite the entire stdio.
This should be feasible, since a stream has a state when the buffer is empty and the file descriptor is not block-aligned: namely, early after program initialization. If you ensure that all internal pointers/counters are set according to this state, I don't expect that you would need to override fread(), fgetc(), etc. Bruno