copy from 2d dynamic char array to another 2d dynamic array in c : I wanted to copy the content of a two dimensional array into another two dimensional char array. I used the following `for` loop with `memcpy` but it is not working as desired. So I have two questions.

1. What is wrong with this code? and 
2. Is there a way to do it without use of iteration?
 

        for (int i = 0; i < count; i++)
        	{
        		memcpy(&buf_copy[i], buf[i], sizeof(buf[i]));
        	}
Both `buf` and `buf_copy` are 2d dynamic char arrays;