News for hackers. Stuff that matters.
Re:Tips and Tricks to avoid memory leaks in writing C by naughtysriram on Wednesday June 15, 2011 @09:10AM (#2656902)
Nice idea, but people would scream seeing those goto's. I used to do those in a macro/function like,

#define memalloc(x,y) { x=0;if(x=malloc(y)){}else{printf("error:no mem");} }

There are no comments on this comment yet.