1 /*****************************************************************************\
3 * | || | ___ | |_ _ __ | | _ _ __ _ |_ ) *
4 * | __ |/ _ \| _|| '_ \| || || |/ _` | / / *
5 * |_||_|\___/ \__|| .__/|_| \_,_|\__, |/___| *
7 \*****************************************************************************/
13 * A malloc wrapper. Exits if no memory.
15 * @1 Ammount of memory to allocate
17 * Returns: Pointer to freshly allocated memory
19 inline void *xmalloc(size_t size
) {
23 fprintf(stderr
, "MALLOC FAILURE!\n");
30 * A realloc wrapper. Exits if no memory.
33 * @2 Ammount of memory to allocate
35 * Returns: Pointer to reallocated memory
37 inline void *xrealloc(void *inptr
, size_t size
) {
39 ptr
= realloc(inptr
, size
);
41 fprintf(stderr
, "MALLOC FAILURE!\n");