Hammer,
I have tried to incorportate some of your suggestions, but although the module compiles - I am getting "incompatible types in assignment" compile errors from the calling pgm.
In the module header I have as follows:
Code:
exterb FILE filebinaryopen(name_type filename, mode_type outmode);
in the module c I have as follows:
Code:
FILE filebinaryopen(name_type filename, mode_type outmode) {
fp = fopen(filename, outmode);
return(*fp); }
in the calling pgm I have as follows:
Code:
if ((fp = filebinaryopen(argv[2], "wb")) == NULL
{
perror("argv[2]");
exit(1);
}
can you suggest what i am doing wrong??
thanks
sue