home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 1.ddi / CLIB1.ZIP / GGETMEM.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  1.5 KB  |  41 lines

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