2 points
Malloc doesn’t even exist! He’s not canon!
/j
2 points
4 points
26 points
knowing GPT users, this is probably not satire.
11 points
You don’t need to cast the return value from malloc.
1 point
2 points
1 point
1 point
*
8 points
True. Although given how easy it is to cast void pointers to the wrong damn thing, it would be nice if you did, makes refactoring much easier. Makes me appreciate std::any
all the more.
1 point
*
5 points
Hey, best of luck figuring that out: