I have a file pointer which was assigned in main. In the main, I just open a file to write stuff to it. I want to pass the file pointer to several functions so that they can write to the file. In the fucntion declaration I just add:
somefunc(FILE *file) ?
and when calling pass
File *fptr
.
.
.
somefunc(fptr) ?
Have I got this right so far? With that file pointer I would be able to write to file within those functions.