1 /*
2   Alloc
3   A simple allocation veneer with checking
4   JBS 15 June 1994
5 */
6 
7 #ifndef _ALLOC_
8 
9 #define _ALLOC_
10 
11 #include "types.h"
12 
13 void *allocate(size_t);
14 void *allocate_zero(size_t);
15 
16 #define alloc(n,t) allocate((n) * (size_t) sizeof(t))
17 #define alloc0(n,t) allocate_zero((n) * (size_t) sizeof(t))
18 
19 #endif
20