diff th_util.h @ 68:29f9651465c6

Added a new memory allocator function, th_malloc0(size), which is the same as calloc(1, size).
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 15 Nov 2012 19:22:06 +0200
parents 34d58b0f2d52
children 28156333ef4c
line wrap: on
line diff
--- a/th_util.h	Thu Nov 15 19:21:14 2012 +0200
+++ b/th_util.h	Thu Nov 15 19:22:06 2012 +0200
@@ -80,6 +80,7 @@
 void    THPRINT_V(int, const char *, va_list);
 
 void    *th_malloc(size_t);
+void    *th_malloc0(size_t);
 void    *th_calloc(size_t, size_t);
 void    *th_realloc(void *, size_t);
 void    th_free(void *);