Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
6 answers
1k views

What is the most efficient way to convert STL string array to const char* array?

We have: std::string string_array[2]; string_array[0] = "some data"; string_array[1] = "some more data"; char* cstring_array[2]; What is the most efficient way to copy data from string_array ...
hoxnox's user avatar
  • 355