home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c220 / 4.ddi / INC / MALLOC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-16  |  950 b   |  40 lines

  1. /*
  2.  *   malloc.h -- non-ANSI 
  3.  *
  4.  *   Memory-allocation functions.
  5.  *
  6.  *           Copyright (c) 1990, MetaWare Incorporated
  7.  */
  8.  
  9. #ifndef _MALLOC_H
  10. #define _MALLOC_H
  11.  
  12. #ifdef __HIGHC__                   /* non ANSI extensions enabled        */
  13.  
  14. /* data size definitions              */
  15.  
  16. #ifndef _SIZE_T_DEFINED
  17. typedef unsigned int size_t;
  18. #define _SIZE_T_DEFINED
  19. #endif
  20.  
  21. extern void     * _alloca(size_t); /* extra ANSI version */
  22.  
  23. extern void _ffree(void _Far *);
  24. extern void _nfree(_Near void *);
  25. extern void _Far *_fmalloc(size_t);
  26. extern void _Near *_nmalloc(size_t);
  27.  
  28. extern void     * alloca(size_t);  /* non ANSI version */
  29.  
  30. /*  ANSI function prototypes, but this is not an ANSI header file! */
  31.  
  32. extern void     * calloc(size_t, size_t);
  33. extern void       free(void *);
  34. extern void     * malloc(size_t);
  35. extern void     * realloc(void *, size_t);
  36.  
  37. #endif /* noansi (__HIGHC__) */
  38.  
  39. #endif /* _MALLOC_H */
  40.