Since the type FILE is defined in c lib:
Code:
struct temp {
char strg1[ N ],strg2[ N ];
int test[ N ];
float fraction;
};
/* prototype: you have declared a structure
** that will "carry" what you pass */
somefunction( struct temp theStruct[ ], FILE *theFilePointer );
main( void ) {
struct temp S1[ 100 ];
FILE *fp;
somefunction( S1, fp );
return 0;
}
somefunction( struct temp theStruct[ ], FILE *theFilePointer ) {
/* because the struct definition is global you
** can declare another structure as well */
struct temp anotherStruct;
/* but this is a completely seperate new struct, just the same type */
}