void copy(char to[], char from[]) { printf ("to[]: %s\nfrom[]: %s\n", to, from); int i = 0; while (from[i] != '\0') { printf ("from[%d]: %c\n", i, from[i]); printf ("to[%d]: %c\n", i, to[i]); to[i] = from[i]; printf ("to[%d] now: %c\n", i, to[i]); i++; } to[i] = '\0'; }