home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / oslib / Examples / p3-411 < prev    next >
Encoding:
Text File  |  1994-04-06  |  427 b   |  21 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], *end;
  11.  
  12.    os_gs_trans ("<Font$Prefix> and <Font$Path>", buffer, sizeof buffer - 1,
  13.          &end);
  14.    *end = '\0'; /*ensure there is a terminator (0 for C)*/
  15.  
  16.    if (strcmp (buffer, Old_Font_Path) != 0)
  17.    {  strcpy (Old_Font_Path, buffer);
  18.       Cache_List_Of_Fonts ();
  19.    }
  20. }
  21.