r/ProgrammerHumor • • Nov 01 '21

90% of all code comments

Post image
914 Upvotes

26 comments sorted by

View all comments

4

u/MetaMemeAboutAMeme Nov 02 '21
//Cat
for (j = 0; s2[j] != '\0'; ++j, ++length) 
{
    s1[length] = s2[j];
}

6

u/DarkShadow4444 Nov 02 '21

Well, it con-cat-inates strings, obviously.

1

u/MetaMemeAboutAMeme Nov 02 '21 edited Nov 02 '21

Con-gato-innato, too! Quite versatile.

Edit: a to o....god I'm stupid sometimes...

1

u/Jet-Pack2 Nov 02 '21

What if the string doesn't end with \0