Is there any way I can copy values into a specific string position using memcpy()?
<p>I'm struggling to find I way to get the following string using the string.h functions   memset(...), memcpy(...) and strcat(...):</p>

<p>0000001234abcd</p>

<p>I'm required to use memcpy and I can not find a way to do so without returning to the begining of the string.</p>

<pre><code>#include &lt;stdlib.h&gt; 
#include &lt;stdio.h&gt; 
#include &lt;string.h&gt;

void main () {
    char string [15];

    memset((void *)string,'0',6*sizeof(char));
    memcpy(string,"1234",4);
    strcat(string,"abcd");

    printf("String: %s\n",string);
} 
</code></pre>

<p>Output-> String: 123400abcd</p>

<p>If anyone comes up with an idea, I would appreciate it so much.</p>