1 #ifndef XMALLOC_H 2 #define XMALLOC_H 3 4 void * 5 rpl_malloc(size_t size); 6 7 void * 8 rpl_realloc(void * ptr, size_t size); 9 10 void * 11 xmalloc(size_t size); 12 13 void * 14 xcalloc(size_t num, size_t size); 15 16 void * 17 xrealloc(void * ptr, size_t size); 18 19 char * 20 xstrdup(const char * p); 21 22 char * 23 xstrndup(const char * str, size_t len); 24 25 #endif 26