alloc.h 533 B

12345678910111213141516
  1. /* $Header$ */
  2. /* PROGRAM'S INTERFACE TO MEMORY ALLOCATION ROUTINES */
  3. /* This file serves as the interface between the program and the
  4. memory allocating routines.
  5. There are 3 memory allocation routines:
  6. char *Malloc(n) to allocate n bytes
  7. char *Salloc(str, n) to allocate n bytes
  8. and fill them with string str
  9. char *Realloc(str, n) reallocate the string at str to n bytes
  10. */
  11. extern char *Salloc(), *malloc(), *realloc();
  12. #define Malloc(n) malloc((unsigned)(n))
  13. #define Srealloc(ptr,n) realloc(ptr, (unsigned)(n))