I need to do networking in uCsimm, Motorola Dragon Ball. As I\'m running uClinux with RTAI patch, and I need real-time performance, therefore all malloc and its friends are undesirable. I have the fol
I wrote some code in C and I need to handle the situation that fail to malloc() or realloc(). I know that if memory allocation failed, it will return NULL, and I wrote something as follow: