The syntax for this is incorrect.
CODE
read_image_array(file_name, array)
I am guessing that read_image_array is a function that takes two arguments. It should end with a semi-colon.
CODE
char *file_name;
short **array;
These are ok, but what does the following curly bracket open? Is this the entrance to the program? Is this int main, or is this the code for read_image_array?
CODE
{
int ok = 0;
if (is_a_tiff(file_name))
{ read_tiff_image(file_name, array);
ok=1;
}
}
& also, you've set ok to a value of zero, & that will get changed to a 1 the function if is_a_tiff returns true. When does the variable ok get used?
I'm not sure how to answer your question "where they get stored", as I have never really used C/C++ to work with images. I would think file_name is going to be a file pointer, & the file would be opened with fopen. But that's just taking a wild guess. What book is this?