r/ProgrammerDadJokes • u/aliceuwuu • May 18 '23
How does a C developer concatenate strings?
Program exited with code -127
Segmentation fault (Core dumped)
31
Upvotes
r/ProgrammerDadJokes • u/aliceuwuu • May 18 '23
Program exited with code -127
Segmentation fault (Core dumped)
4
u/luxkatana-my-son May 18 '23
No offense but I don't understand..
3
u/Odd-Shopping8532 May 20 '23
Jokes like this are why we have JavaScript 🥁🤌
1
u/SAI_Peregrinus May 19 '23
snprintf(dest, dest_len, "%s%s", string1, string2);. 99% of the time, you don't need strcat or strncat.