converting a std::string to an array of c strings
<p>I'm trying to find a way to convert a string to array of c strings. 
So for example my string would be:</p>

<pre><code>std::string s = "This is a string."
</code></pre>

<p>and then I would like the output to be something like this:</p>

<pre><code>array[0] = This
array[1] = is
array[2] = a
array[3] = string.
array[4] = NULL
</code></pre>
