Searched refs:vmefail (Results 1 – 1 of 1) sorted by relevance
44 #define vmefail() (fprintf(stderr, "virtual memory exhausted.\n"), exit(EXIT_FAILURE), NULL) macro45 #define xmalloc(_size) (malloc(_size) ? : vmefail())46 #define xcalloc(_nmemb, _size) (calloc((_nmemb), (_size)) ? : vmefail())47 #define xrealloc(_ptr, _size) (realloc((_ptr), (_size)) ? : vmefail())48 #define xstrdup(_str) (strcpy((malloc(strlen(_str)+1) ? : vmefail()), (_str)))