How do I get char * from vector<char>?
<p>I have declared a vector like this</p>

<pre><code>vector&lt;char&gt; vbuffer;
</code></pre>

<p>and used it as a receive buffer like this..</p>

<pre><code>recv = read(m_fd, &amp;m_vbuffer[totalRecv], SIZE_OF_BUFFER);
</code></pre>

<p>It seems like working and now I want to get the raw char data for parsing..</p>

<p>If I have defined a function like this..</p>

<pre><code>char* getData(){
//return char data from the vector

}
</code></pre>

<p>How would I fill inside of the function? Thanks in advance..</p>
