home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / SNIP9404.ZIP / BIG_MALL.H < prev    next >
Text File  |  1994-04-03  |  415b  |  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.