home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 1.ddi / CLIBSRC.ZIP / FFMALLOC.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  673 b   |  28 lines

  1. /*-----------------------------------------------------------------------*
  2.  * filename - ffmalloc.c
  3.  *
  4.  * function(s)
  5.  *        __ffarmalloc  - helper function for _fstrdup
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 5.0
  10.  *
  11.  *      Copyright (c) 1991, 1992 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16.  
  17. #include <alloc.h>
  18.  
  19. /*
  20.    Helper function for _fstrdup.  It's a far function that makes a near or
  21.    far call to farmalloc depending on the memory model.
  22. */
  23.  
  24. void far * far _ffarmalloc(unsigned long __nbytes)
  25. {
  26.         return farmalloc(__nbytes);
  27. }
  28.