Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!ucbvax!AGR03.TO.CNR.IT!FELICE From: FELICE@AGR03.TO.CNR.IT ("Felice G. Marchesi * +39-39-6555.563 *") Newsgroups: comp.os.vms Subject: ftell & fseek Message-ID: <8808022220.AA12922@ucbvax.berkeley.edu> Date: 28 Jul 88 13:41:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 24 Dear Info-Vaxers, I'm forwarding to you this question for one of my friends. Please reply directly to him to the address: VOLPONES@AGR04.TO.CNR.IT ----------------- original message follows --------------------- From : Volpones Carlo I was working on adapting a C program, currently running under UNIX, to VMS. I had some problems with the use of "ftell" and "fseek" . After a call to "fseek" and a number 'n' of calls to "fgetc" are done, the next "ftell" don't return the actual position ( n bytes after the last "fseek"), but return the position of the last "fseek". I think that could be some problems into the implementation of "fseek" and "getc" so that the pointer to the position into the file is not correctly handled by this functions. ----------------------------------------------------------------------------- Felice Marchesi Felice@agr03.to.cnr.it