copy it one letter at a time, like this and also the loop needs to stop when end-of-string null terminator is found in the letter array.
char letter[8]="abcdefg";
char temp[10][2] = {0};
for(int i=0; letter[i] != 0;i++)
temp[i] = letter[i];
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343