This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: FILE Pointer
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Bharathi S <bharathi at lantana dot TeNeT dot res dot in>
- Cc: GNU GCC <gcc-help at gcc dot gnu dot org>
- Date: Tue, 27 May 2003 10:12:43 -0500
- Subject: Re: FILE Pointer
- References: <4.3.2.7.2.20030527081214.00b705f0@iplan-mn.corp.adobe.com>
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