this post was submitted on 12 Jun 2023
40 points (97.6% liked)

Programmer Humor

33105 readers
509 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 5 points 2 years ago (1 children)

There's always the classic C strcpy :)

char *strcpy(char *dest, char *src) {
    char *p = dest;
    while (*p++ = *src++);
    return dest;
}
[โ€“] [email protected] 1 points 2 years ago

Thanks I hate it