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

  1. /*-----------------------------------------------------------------------*
  2.  * filename - gregistr.c
  3.  *
  4.  * function(s)
  5.  *   registerbgidriver - register a BGI driver
  6.  *   registerbgifont   - register a BGI font
  7.  *-----------------------------------------------------------------------*/
  8.  
  9. /*[]------------------------------------------------------------[]*/
  10. /*|                                                              |*/
  11. /*|     Turbo C Run Time Library - Version 3.0                   |*/
  12. /*|                                                              |*/
  13. /*|                                                              |*/
  14. /*|     Copyright (c) 1987,1988,1990 by Borland International    |*/
  15. /*|     All Rights Reserved.                                     |*/
  16. /*|                                                              |*/
  17. /*[]------------------------------------------------------------[]*/
  18.  
  19.  
  20. #include <_graph.h>
  21. #include <process.h>
  22.  
  23. /*---------------------------------------------------------------------*
  24.  
  25. Name        registerbgidriver - register a BGI driver
  26.  
  27. Usage        void registerbgidriver(void (*driver)(void))
  28.  
  29. Prototype in     graphics.h
  30.  
  31. Description    informs the graphics system about the presence of a
  32.         linked in graphics driver
  33.  
  34. Return value    nothing
  35.  
  36. *---------------------------------------------------------------------*/
  37. void registerbgidriver(void (*driver)(void))
  38. {
  39.     registerfarbgidriver((void far *)driver);
  40. }
  41.  
  42.  
  43. /*---------------------------------------------------------------------*
  44.  
  45. Name        registerbgifont - register a BGI font
  46.  
  47. Usage        void registerbgifont(void (*font)(void))
  48.  
  49. Prototype in     graphics.h
  50.  
  51. Description    informs the graphics system about the presence of a
  52.         linked in stroked font.
  53.  
  54. Return value    nothing
  55.  
  56. *---------------------------------------------------------------------*/
  57. void registerbgifont(void (*font)(void))
  58. {
  59.     registerfarbgifont((void far *)font);
  60. }
  61.