char *const xalloc_msg_memory_exhausted = "Memory exhausted";
/* FIXME: describe */
-void (*xalloc_fail_func) (int) = 0;
+void (*xalloc_fail_func) (int) = NULL;
static void
xalloc_fail (int size)
void *p;
p = malloc (n);
- if (p == 0)
+ if (p == NULL)
xalloc_fail ((int)n);
return p;
}
void *p;
p = malloc (n);
- if (p == 0)
+ if (p == NULL)
xalloc_fail ((int)n);
memset (p, '\0', n);
return p;
xrealloc (void *p, size_t n)
{
p = realloc (p, n);
- if (p == 0)
+ if (p == NULL)
xalloc_fail (n);
return p;
}