Right...I need help because my head is spinning:
I have a program built in C++ on linux in a module fashion. I have a controlling module which simply calls the functions of other modules, and supplies data.
In one module (file_report_analyser) i have three arrays, all two dimensional (matched , to_download  and to_upload  ).
Now, i need to call this module, so that it does it's fnacy things to the arrays. Once it has run, I then need the control module to be able to retrieve values from these three arrays.
This is where i have got myself muddled.
I know that i need to shove pointers to the arrays around, but i can't sort out in my head what needs to go where.
Do i allocate memory to the arrays from the control module and pass the addresses to the analyser module,
return the addresses of the arrays from the analyser module to the control module
Please could someone explain the best method with some generic code, so i can see what happens. Please could you include the syntax for the explanation, including function declarations and pointer things.
Thanks in advance.