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