Date: Wed, 16 Oct 1996 08:19:43 +0200 (IST) From: Eli Zaretskii To: Juanjo Erauskin Cc: djgpp AT delorie DOT com Subject: Re: ftell does'nt work properly In-Reply-To: <3263B6D5.7910@jet.es> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.