From 192a04be85b747e024ae3d5d84307adc5d6800c8 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 4 Nov 2017 16:41:06 +0100 Subject: [PATCH] add function tcalloc --- src/misc/alloc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/misc/alloc.h b/src/misc/alloc.h index b310e3cba..10104dbc4 100644 --- a/src/misc/alloc.h +++ b/src/misc/alloc.h @@ -7,8 +7,9 @@ #define ngspice_ALLOC_H #ifndef HAVE_LIBGC -void * tmalloc(size_t num); -void * trealloc(const void *ptr, size_t num); +void *tmalloc(size_t num); +void *trealloc(const void *ptr, size_t num); +void *tcalloc(size_t num, size_t stype); void txfree(const void *ptr); #endif