home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 1.ddi / CLIBSRC.ZIP / GGETMEM.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.0 KB  |  39 lines

  1. /*-----------------------------------------------------------------------*
  2.  * filename - ggetmem.c
  3.  *
  4.  * function(s)
  5.  *   _graphgetmem - allocate memory for graphics library
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 5.0
  10.  *
  11.  *      Copyright (c) 1987, 1992 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16.  
  17. #include <graphics.h>
  18. #include <alloc.h>
  19.  
  20. /*-----------------------------------------------------------------------*
  21.  
  22. Name            _graphgetmem - allocate memory for graphics library
  23.  
  24. Usage           void far * far _graphgetmem(unsigned size)
  25.  
  26. Prototype in    graphics.h
  27.  
  28. Description     allocates memory used for graphic buffers, fonts, etc.
  29.  
  30. Return value    returns a pointer to the allocated memory block on success;
  31.                 NULL on failure.
  32.  
  33. *------------------------------------------------------------------------*/
  34.  
  35. void far * far _graphgetmem(unsigned size)
  36. {
  37.         return(malloc(size));
  38. }
  39.