mailmap: add mail alias
[transsip.git] / src / xmalloc.h
blob1dc4195d82f00d742e6eef0180b2b46ec98b9fa5
1 /*
2 * transsip - the telephony toolkit
3 * By Daniel Borkmann <daniel@transsip.org>
4 * Copyright 2011, 2012 Daniel Borkmann <dborkma@tik.ee.ethz.ch>
5 * Subject to the GPL, version 2.
6 */
8 #ifndef XMALLOC_H
9 #define XMALLOC_H
11 #include "built_in.h"
13 extern __hidden void *xmalloc(size_t size);
14 extern __hidden void *xzmalloc(size_t size);
15 extern __hidden void *xmalloc_aligned(size_t size, size_t alignment);
16 extern __hidden void *xmemdup(const void *data, size_t len);
17 extern __hidden void *xrealloc(void *ptr, size_t nmemb, size_t size);
18 extern __hidden void xfree(void *ptr);
19 extern __hidden char *xstrdup(const char *str);
21 #endif /* XMALLOC_H */