Hello,
My program creates a two dimensional array and populates it dynamicly. Following a thread i found with search, i did it by creating the dynamic array and then filling that array with arrays.
That much works fine. My problem lies in the fact that i need to return this array fro mthe function that creates it to the main part of the program.
Function returns array as char**. I would like to put this into a global variable. Now i can't pre allocate the size of the global i want to store it in, as i dont know size of array till its amde.
I am considering makign the array static within the function and then simply using pointers to access it as needed during my program, but this seems kinda, sloppy.
The question at hand is, how can i properly return my array from my function, and how can i set up the Global variable to recieve it.
Thanks. i can include code if you need but dont think code would do much good as it would "seem" to be a kind of universal syntax thing.
I shall continue my search and Post if i solve this myself
Thanks