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

  • Leo Uino@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    There’s always the classic C strcpy :)

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