]> Pileus Git - ~andy/fetchmail/blob - xmalloc.h
Add sdump(), split xmalloc.h out of fetchmail.h
[~andy/fetchmail] / xmalloc.h
1 /* xmalloc.h -- split out of fetchmail.h */
2
3 #ifndef XMALLOC_H
4 #define XMALLOC_H
5
6 #include "config.h"
7
8 /* xmalloc.c */
9 #if defined(HAVE_VOIDPOINTER)
10 #define XMALLOCTYPE void
11 #else
12 #define XMALLOCTYPE char
13 #endif
14 XMALLOCTYPE *xmalloc(size_t);
15 XMALLOCTYPE *xrealloc(/*@null@*/ XMALLOCTYPE *, size_t);
16 #define xfree(p) { if (p) { free(p); } (p) = 0; }
17 char *xstrdup(const char *);
18
19 #endif