Just fyi, for the ones who thought that opaque FILE would prevent messing with stdio internals: http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/stdio-impl.h;h=b9572b4f046bb398572ff8d2359b63445688fbb0;hb=HEAD regards, -- Hasso Tepper