//#include //#include #define ALLOC(ptr, type, nb) { ptr = (type*)malloc(sizeof(type)*(nb));\ if (ptr == NULL) { fprintf(stderr,"Allocation error.\n");exit(1);}} int main(int argc, char* argv[]) { int *test; ALLOC(test,int,3); return 0; }