Mail Archives: djgpp/1996/10/16/02:33:35
On Tue, 15 Oct 1996, Juanjo Erauskin wrote:
> I am using ftell() function with a text file. If I opened unbuffered
> ftell() works good, but if I opened buffered ftell() does'nt work
> properly. I am using libc dated 22 Feb 96.
What exactly do you mean by ``doesn't work properly''? According to ANSI
C, `ftell' values should only be used in a call to `fseek'. If you are
trying to interpret the values returned by `ftell' as byte offsets into
the file, you will get into trouble when reading DOS text files.
- Raw text -