I'm trying to pass some file pointers as function parameters but I'm having a little trouble with it.
Say, I pass the pointer to a function to open my file:
*FilePntr = fopen(argv, "r");
Assuming the function's as simple as this, this is pretty much what I have done.
The compiler generates an error and says that on line 5 there's a type mis match.
How can I get around this? It's important that the program alters the variables used in the other functions by passing pointers as parameter functions, but how can I do it?