1 #if HAVE_CONFIG_H 2 # include "config.h" 3 #endif 4 #undef realloc 5 6 #include <sys/types.h> 7 8 void *realloc (); 9 10 /* Allocate an N-byte block of memory from the heap. 11 If N is zero, allocate a 1-byte block. */ 12 13 void * rpl_realloc(void * p,size_t n)14rpl_realloc (void *p, size_t n) 15 { 16 if (n == 0) 17 n = 1; 18 return realloc (p, n); 19 } 20