Path: utzoo!utgpu!water!watmath!clyde!ima!cfisun!lakart!dg From: dg@lakart.UUCP (David Goodenough) Newsgroups: comp.lang.c Subject: magic cookies given back by ftell, and used in fseek Message-ID: <129@lakart.UUCP> Date: 20 May 88 20:33:29 GMT Reply-To: dg@lakart.UUCP (David Goodenough) Followup-To: comp.lang.c Organization: Lake - The systems people Lines: 18 There has been much discussion in this group on the fact that on certain systems (VMS I believe), ftell & fseek use magic cookies to tell about file position. I have my asbestos suit ready if this suggestion is out of line, but have the ANSI comittee considered providing some means to convert from cookie format to and from character position in file. Come to that is such a thing possible? I ask this based on the statement that the cookie returned at end of file when gotten there in two different ways was different. Am I correct in perceiving that this arises in a similar manner to the fact that on some segmented architectures (e.g. 8088) there are many different ways of pointing to the same address, or is it some other reason. Since my knowledge of VMS is about nil, this is just a guess, doubtless there will be many out there who can tell me the correct way of doing things. -- dg@lakart.UUCP - David Goodenough +---+ | +-+-+ ....... !harvard!adelie!cfisun!lakart!dg +-+-+ | +---+