a couple of random questions
Rahul Dhesi
dhesi at bsu-cs.UUCP
Mon Apr 18 06:43:28 AEST 1988
In article <7706 at brl-smoke.ARPA> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>)
writes:
>fseek() to an absolute position only works PORTABLY if the cookie you
>give it is one obtained from ftell().
VAX/VMS C, as always, is an exception. Open a standard VMS text file
for read, then:
(a) keep reading until you hit end-of-file
(b) do an ftell
(c) do an fseek to end-of-file (with whence=2, offset=0L)
(d) do an ftell again
The two ftells will give different answers.
(I last tried this some months ago. VMS C evolves nearly as fast as
fruit files do so things might have changed since then.)
--
Rahul Dhesi UUCP: <backbones>!{iuvax,pur-ee,uunet}!bsu-cs!dhesi
More information about the Comp.lang.c
mailing list