Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!TNTECH.BITNET!WPR0986 From: WPR0986@TNTECH.BITNET Newsgroups: comp.os.vms Subject: RE: C typedefs for FILE Message-ID: <8808061413.AA08311@ucbvax.berkeley.edu> Date: 3 Aug 88 16:26:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 23 > From: James Kingdon > > typedef struct _iobuf *FILE; > > which just means that FILE means pointer to struct _iobuf Then when you declare something like: FILE *fp; you really have a pointer to a pointer to a "struct _iobuf". Why does DEC do this ? In all files I've seen outside of the VMS world (even ULTRIX), its simply defined as: #define FILE struct _iobuf thus the previous declaration of "fp" would only be a single pointer to a structure. Isn't that how it should be ? -------------------------------------------------------------------------- Walter Rowe | Heard at a DECUS meeting: Tennessee Tech Univ. | Guest 1: C programs are unreadable ! Cookeville, TN | Guest 2: Only the good ones ! --------------------------------------------------------------------------