home *** CD-ROM | disk | FTP | other *** search
/ Point Programming 1 / PPROG1.ISO / c / snippets / big_mall.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-03  |  415 b   |  16 lines

  1. /*
  2. ** void _far *BigMalloc(unsigned long num_elem, size_t size_elem)
  3. */
  4.  
  5. #ifdef MSDOS
  6.  #if defined(__TURBOC__) || defined(__ZTC__)
  7.   #ifdef __TURBOC__
  8.    #define _far far
  9.   #endif
  10.   #define BigMalloc(i,n) (void _far *)farmalloc(i*n)
  11.  #else                                          /* MSC, Watcom  */
  12.   #define BigMalloc(i,n) (void _far *)halloc(i,n)
  13. #else
  14.  #define BigMalloc(i,n) malloc(i*n)
  15. #endif 
  16.