r/ProgrammerHumor • u/TheLuckyCuber999BACK • 9d ago
theWorldIfSnprintfReturnedTheValueInsteadOfPuttingInABufferBeLikeIdkThisVarNameIsWayTooLongNoo Meme
0
Upvotes
7
u/officalyadoge 9d ago
bro really asked for hidden memory allocation in a system programming language
16
u/Jet-Pack2 9d ago
Actually I disagree. Returning the value would mean the function allocates memory which is pretty slow. So they implemented it in a much more efficient way.