6 #define new_array(type, num) realloc_array((type *)0, (num))
7 #define realloc_array(ptr, num) ((__typeof__(ptr))_realloc_array((ptr), sizeof((*ptr)), (num)))
9 void *realloc_nofail(void *ptr, size_t size);
11 void *_realloc_array(void *ptr, size_t size, size_t num);
13 void * palloc(int size);
15 char *aprintf(const char *fmt, ...);
17 int strreplace(char * str, char src, char dest);