src: minor update in header file
[transsip.git] / src / xmalloc.h
blobc9585bd34fceb191380bc846efd410aa17bec27c
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 *xrealloc(void *ptr, size_t nmemb, size_t size);
17 extern __hidden void xfree(void *ptr);
18 extern __hidden char *xstrdup(const char *str);
20 #endif /* XMALLOC_H */