Name: Anonymous 2007-03-02 3:10 ID:8GT6+4Q4
Fuck OO. GOTO or GTFO.
#include <stdlib.h> that you ought to be writing whenever you use malloc. On x86, that's no big deal, because return type in C defaults to int. On any system, if you're casting your return, you won't even get warnings about it ... unless you have strict warnings enabled to catch the missing prototype, in which case if you're still casting the return value, you're basically just a robot doing stuff because that's what people have told you, and clearly have no idea what the fuck is going on. But that aside, int is four bytes, void * is four bytes, int * is four bytes, blah blah blah who cares, right? Until, of course, you build your code on a 64-bit system where sizeof(int) == 4 and sizeof(void *) is 8. Now your code is fucked, because you're casting things to the wrong-sized data.new operator that ensures type safety and all that other bullshit that makes you feel good about how awesome your code is.