www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/16/02:33:35

Date: Wed, 16 Oct 1996 08:19:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Juanjo Erauskin <juanjo AT jet DOT es>
Cc: djgpp AT delorie DOT com
Subject: Re: ftell does'nt work properly
In-Reply-To: <3263B6D5.7910@jet.es>
Message-Id: <Pine.SUN.3.91.961016081710.21936A-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019