C++ String Parsing
<p>I am new to C++. I have a function</p>

<pre><code>output(int chop, char buff)
</code></pre>

<p>How do I use the chop to parse through the buffer which contains a string and chop everything after the value? Thank you</p>
