the loop should appear like this ......

for(i = 0; i < length/2; i++)
{
temp = copy[i];
copy[i] = copy[length - 1 - i];
copy[length - 1 - i] = temp;
}