#define NEW(type) ((type *)malloc(sizeof(type))) #define NEW_ARRAY(num,type) \ ((type *)calloc((size_t)(num),sizeof(type)))