how to set string b to equal a when a has spaces in it c : <p>I have a string called that can continue a value with spaces for it as an example</p>

<pre><code>char *a="this is a test"
</code></pre>

<p>I want to declare another string</p>

<pre><code>char *b=NULL;
</code></pre>

<p>so I can then assign the value of a to b such as </p>

<pre><code>b=a;
</code></pre>

<p>however currently b will only hold any characters up to the first space (in this example b= "this").
How do I get it to hold the entire string </p>
