home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / c / amivogl-1.03.lzh / vogl / hershey / src / check.c next >
Encoding:
C/C++ Source or Header  |  1994-04-12  |  537 b   |  26 lines

  1. /* check.c: */
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include "hershey.h"
  5.  
  6. /* --------------------------------------------------------------------- */
  7.  
  8. extern int    hLoaded;
  9.  
  10. /* --------------------------------------------------------------------- */
  11.  
  12. /*
  13.  * check_loaded
  14.  *
  15.  *     Checks and prints out a message if the font isn't loaded.
  16.  */
  17. void check_loaded(char *who)
  18. {
  19.     if (!hLoaded) {
  20.         fprintf(stderr, "%s: no hershey font loaded.\n", who);
  21.         exit(1);
  22.     }
  23. }
  24.  
  25. /* --------------------------------------------------------------------- */
  26.