root/cserver/wmalloc.c

Revision 1203, 200 bytes (checked in by efphe, 1 year ago)

moving code from fenilot.org

Line 
1 #include "wlog.h"
2
3 void* w_malloc(size_t sz)
4 {
5     void *store;
6
7     if (!(store=malloc(sz)))
8         fatal("Fatal malloc().");
9
10     return store;
11 }
12
13 void w_free(void *p)
14 {
15     free(p);
16     return;
17 }
Note: See TracBrowser for help on using the browser.