[comp.os.vms] C typedefs for FILE

WPR0986@TNTECH.BITNET (08/03/88)

> From:         James Kingdon <att!chinet!jkingdon@UCBVAX.BERKELEY.EDU>
>
>    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 <stdio.h> 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 !
--------------------------------------------------------------------------