Copy a character array in another character array using pointers and without using inbuilt function