home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 1.ddi / CLIBSRC1.ZIP / GREGISTR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.5 KB  |  59 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.  *      C/C++ Run Time Library - Version 5.0
  11.  *
  12.  *      Copyright (c) 1987, 1992 by Borland International
  13.  *      All Rights Reserved.
  14.  *
  15.  */
  16.  
  17.  
  18. #include <_graph.h>
  19. #include <process.h>
  20.  
  21. /*---------------------------------------------------------------------*
  22.  
  23. Name            registerbgidriver - register a BGI driver
  24.  
  25. Usage           void registerbgidriver(void (*driver)(void))
  26.  
  27. Prototype in    graphics.h
  28.  
  29. Description     informs the graphics system about the presence of a
  30.                 linked in graphics driver
  31.  
  32. Return value    nothing
  33.  
  34. *---------------------------------------------------------------------*/
  35. void registerbgidriver(void (*driver)(void))
  36. {
  37.         registerfarbgidriver((void far *)driver);
  38. }
  39.  
  40.  
  41. /*---------------------------------------------------------------------*
  42.  
  43. Name            registerbgifont - register a BGI font
  44.  
  45. Usage           void registerbgifont(void (*font)(void))
  46.  
  47. Prototype in    graphics.h
  48.  
  49. Description     informs the graphics system about the presence of a
  50.                 linked in stroked font.
  51.  
  52. Return value    nothing
  53.  
  54. *---------------------------------------------------------------------*/
  55. void registerbgifont(void (*font)(void))
  56. {
  57.         registerfarbgifont((void far *)font);
  58. }
  59.