OK - here we go -
I have a call to the function
collectstat(fp);
If I stat the file into the struct stat file_info - what is the syntax to return the struct and then later to pass it to another function?Code:???? collectstat(FILE *fp, name_type in_file) { if (access(in_file,0) == 0) { stat(in_file, &file_info); } return(file_info); } } }
I made the struct "static" - hoping it would be there on my return - but it is not - so I will have to pass it back to the calling pgm and then later into the writedata function.
Thanks
Sue