i need to find out what the various members in the FILE struct as defined in <stdio.h> are and was wondering if anyone here would have any idea. the struct:
typedef struct _iobuf
{
char _ptr;
int _cnt;
char _base;
int _flag;
int _file;
int _charbuf;
int _bufsiz;
char* _tmpfname;
} FILE;
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Don't even think about it. If you think that you need this information, you are thinking wrong.
The FILE structure may indeed be defined as above in your particular library for your particular compiler. The implementation of FILE is entirely implementation dependent, and as such making use of knowledge of its internals will lock your code to that specific version of that specific library on that specific platform.
A better way to approach this is to tell us what you need to actually do, and perhaps someone can tell you the 'right' way.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i need to find out what the various members in the FILE struct as defined in <stdio.h> are and was wondering if anyone here would have any idea. the struct:
typedef struct _iobuf
{
char _ptr;
int _cnt;
char _base;
int _flag;
int _file;
int _charbuf;
int _bufsiz;
char* _tmpfname;
} FILE;
Don't even think about it. If you think that you need this information, you are thinking wrong.
The FILE structure may indeed be defined as above in your particular library for your particular compiler. The implementation of FILE is entirely implementation dependent, and as such making use of knowledge of its internals will lock your code to that specific version of that specific library on that specific platform.
A better way to approach this is to tell us what you need to actually do, and perhaps someone can tell you the 'right' way.
Clifford