Passing an array of an array of char to a function
- by L.A. Rabida
In my program, I may need to load a large file, but not always. So I have defined:
char** largefilecontents;
string fileName="large.txt";
When I need to load the file, the program calles this function:
bool isitok=LoadLargeFile(fileName,largefilecontents);
And the function is:
bool LoadLargeFile(string &filename, char ** &lines)
{
…