strcpy

C code posted by openbsd
created at 15 Dec 14:11

Edit | Back
1
2
3
4
5
6
7
8
char *
strcpy(char *to, const char *from)
{
        char *save = to;

        for (; (*to = *from) != '\0'; ++from, ++to);
        return(save);
}
155 Bytes in 2 ms with coderay