How can i set a character array say of size 100 to whitespace and then copy 10 charters to that same string from other. For example:
there is one char array a[100] To do : set all of it to whitespace
Now there is another array : b[10] (suppose this is filled with some string of length 9) To do : copy this array to the previous one
What iam doing is : memset(a, , sizeof(a));
350 memcpy(a,b, strlen(b))
But iam not getting space that i had set after 10 chars has been copied .