Conversion of string to non-const char*
<p>I have some C+ arrays that I have built as follows:</p>

<pre><code>std:array&lt;const char *, 4) test1 = {abc.c_str(), def.c_str(), ghi.c_str()};
</code></pre>

<p>where <code>abc</code>, <code>def</code>, <code>ghi</code> are <code>std::string</code></p>

<p>I have to pass this array to another function which has the following prototype:
<code>(int argc, char * argv[])</code></p>

<p>How should I modify array so that give <code>non-const char*</code> ot me that can be passed to above function. Or should I modify the function to const char*. I am not sure if the function tries to modify char* somewhere since this function code is not mine and not available as well currently.<br/> But, in any case it would be good to ask how would I pass non-const char* array to the above function?</p>
