Petr Cech wrote: > > char c; > ^^^^ int OK. But this is not relevant I guess. Looks like the problem is not with the fget* functions but the low-level stream implementation. Downloaded libc6 source, but I didn't have the time to check anything yet. Thanks, -- Eray (exa) Ozkural Comp. Sci. Dept., Bilkent University, Ankara e-mail: erayo@cs.bilkent.edu.tr www: http://www.cs.bilkent.edu.tr/~erayo