2 * xmalloc.c -- allocate space or die
4 * For license terms, see the file COPYING in this directory.
10 #include <sys/types.h>
11 #if defined(STDC_HEADERS)
14 #include "fetchmail.h"
16 #if defined(HAVE_VOIDPOINTER)
17 #define XMALLOCTYPE void
19 #define XMALLOCTYPE char
28 p = (XMALLOCTYPE *) malloc(n);
29 if (p == (XMALLOCTYPE *) 0) {
30 fputs("fetchmail: malloc failed\n",stderr);
40 p = (char *) xmalloc(strlen(s)+1);
45 /* xmalloc.c ends here */