summaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses/pdcurses-backend/nc_alloc.h
blob: 25b5161ec6446823ede3e0b1cdcb012d70816efb (plain)
1
2
3
#define typeMalloc(type,elts) (type *)malloc((elts)*sizeof(type))
#define typeCalloc(type,elts) (type *)calloc((elts),sizeof(type))
#define typeRealloc(type,elts,ptr) (type *)_nc_doalloc(ptr, (elts)*sizeof(type))