This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FILE Pointer


Hi Bharathi,

Consider a FILE structure to be opaque. Like a "typedef void FILE", so a "FILE*" is a "void*". (On some platforms, that's exactly what a FILE is.)

If you do have a non-opaque FILE structure, and you use anything from structure, your code will be very non-portable.

Sincerely,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]