Reposting this abomination from my Reddit Account because this is important information. Uncle Bob would be proud.

  • lwhjp@lemmy.sdf.org
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    There’s always the classic C strcpy :)

    char *strcpy(char *dest, char *src) {
        char *p = dest;
        while (*p++ = *src++);
        return dest;
    }