Okay, In main I have the following declaration for structure
Okay, I am just looking for an example here. I would like to first, know what the prototype would be for somefunction(), how I would send both the structure S1 to the function somefunction and how to send the file pointer fp to the function somefunction() and finally, what somefunction would look like syntactically. Eg. somefunction(*fp,S1,etc...????)Code:
main() {
struct temp {
char strg1[N],strg2[N];
int test[N];
float fraction;
};
struct temp S1[100];
FILE *fp;
somefunction(?????????);
Thanks.
I currently have them as globals and I was told that this was a not a good idea... so I am going to give it a try the other way. Thanks ahead of time again for any assistance.