home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / languages / c / oslib / Examples / p3-411 < prev    next >
Encoding:
Text File  |  1994-11-03  |  444 b   |  22 lines

  1. #include <string.h>
  2.  
  3. #include "os.h"
  4.  
  5. extern char Old_Font_Path [];
  6. extern void Cache_List_Of_Fonts (void);
  7.  
  8. void ex (void)
  9.  
  10. {  char buffer [0x200];
  11.    int used;
  12.  
  13.    os_gs_trans ("<Font$Prefix> and <Font$Path>", buffer, sizeof buffer - 1,
  14.          &used);
  15.    buffer [used] = '\0'; /*ensure there is a terminator (0 for C)*/
  16.  
  17.    if (strcmp (buffer, Old_Font_Path) != 0)
  18.    {  strcpy (Old_Font_Path, buffer);
  19.       Cache_List_Of_Fonts ();
  20.    }
  21. }
  22.