I have the following code in which works fine.
const char** array = new const char*[_list.size()];
unsigned index = 0;
for (std::list<std::string>::const_iterator it = _list.begin(); it != _list.end(); ++it) {
array[index] = it->c_str();
index++;
}
My question is, how can I convert const char ** to const char *. Please help.