How do I get a substring in C? : <p>For example if:</p>

<pre><code>z = "xxxx; yyyy";
</code></pre>

<p>How can I get the substrings so that</p>

<pre><code>x = "xxxx"
</code></pre>

<p>and</p>

<pre><code>y = "yyyy"
</code></pre>

<p>where "xxxx" and "yyyy" can be any string of any length?</p>
