learningc/chapters/1/exercises/shared/functions/copy.c

7 lines
99 B
C

void copy(char to[], char from[]) {
int i;
i = 0;
while ((to[i] = from[i]) != '\0')
++i;
}