home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / C-ASM_VI.ARJ / PROGC.ZIP / PROGC030.C < prev    next >
Text File  |  1988-05-25  |  467b  |  13 lines

  1.  
  2. /************************************************************************/
  3. /* Determine primary adapter and print it                               */
  4. /************************************************************************/
  5.  
  6. print_primary()
  7.         {
  8.         static char     *list[] = {"Undefined","EGA/VGA","CGA","MDA/Hercules"};
  9.         int     type;
  10.         type = get_primary();
  11.         printf("\n%s is the primary adapter", list[type]);
  12.         }
  13.