home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emxdev8f.zip / MALLOC.H < prev    next >
C/C++ Source or Header  |  1992-11-18  |  804b  |  43 lines

  1. /* malloc.h (emx+gcc) */
  2.  
  3. #if !defined (_MALLOC_H)
  4. #define _MALLOC_H
  5.  
  6. #if defined (__cplusplus)
  7. extern "C" {
  8. #endif
  9.  
  10. #if !defined (_SIZE_T)
  11. #define _SIZE_T
  12. typedef unsigned long size_t;
  13. #endif
  14.  
  15. #if !defined (NULL)
  16. #define NULL ((void *)0)
  17. #endif
  18.  
  19. #if !defined (_HEAPOK)
  20. #define _HEAPOK       0
  21. #define _HEAPEMPTY    1
  22. #define _HEAPBADBEGIN 2
  23. #define _HEAPBADNODE  3
  24. #define _HEAPBADEND   4
  25. #define _HEAPBADROVER 5
  26. #endif
  27.  
  28. void *calloc (size_t elements, size_t size);
  29. void free (void *mem);
  30. void *malloc (size_t size);
  31. void *realloc (void *mem, size_t size);
  32.  
  33. void *_expand (void *mem, size_t new_size);
  34. int _heapchk (void);
  35. int _heapset (unsigned fill);
  36. size_t _msize (__const__ void *mem);
  37.  
  38. #if defined (__cplusplus)
  39. }
  40. #endif
  41.  
  42. #endif /* !defined (_MALLOC_H) */
  43.