I am trying to pass a file pointer array to a function (not sure about the terminology). Could anyone please explain the proper way to send 'in[2]'? Thank you.
#include<stdio.h>
#include<stdlib.h>
void openfiles (FILE **in[], FILE **out)
{
*in[0] = fopen("in0", "r");
*in[1] = fopen("in1", "r");
*out = fopen("out", "w");
}
void main()
{
FILE *in[2], *out;
openfiles (&in, &out);
fprintf(out, "Testing...");
exit(0);
}