|
Re: FILE Pointer: msg#00250gcc.help
> At 10:12 AM 5/27/03 -0500, Eljay Love-Jensen wrote: > > 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.) I understood the porting issue. But still I am not able to get the complete idea behind this void. So my foolish Qs are : The sizeof(FILE) is 148 & sizeof(void) is 1. Does it mean anything ? and System dependent lib only can process the file descriptor ? I try to pass a void ptr to the ftell(), then I got the compilation error "invalid use of void expression". With out casting, How it found that, ptr is NOT a type FILE ? TIA, -- Bharathi S, IndLinuX Team, (__) DON Lab, TeNeT Group, oo ) IIT-Madras, Chennai-INDIA. (_/\ Don't scream for the Change. Become the Change. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Problems when building gcc 3.2or 3.3 as cross compiler for powerpc-linux: 00250, Richard Sewards |
|---|---|
| Next by Date: | How to write web applications in Linux/C++/X Window?: 00250, Luzhangl |
| Previous by Thread: | Re: FILE Pointeri: 00250, Muthukumar Ratty |
| Next by Thread: | Re: FILE Pointer: 00250, Eljay Love-Jensen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |