Category : C Source Code
Archive   : LSPD05-2.ZIP
Filename : 076.C

 
Output of file : 076.C contained in archive : LSPD05-2.ZIP
/* Light Speed Reference Example Program */
/* Find adapter type */
#include "lspeed.h"

main()
{
/* Print the starting message */
printf("The computer has ");

/* Find display type */
switch (display_type())
{
case LS_NODISPLAY : printf("no display card.\n");
break;
case LS_EGADISPLAY : printf("an EGA display adapter.\n");
break;
case LS_CGADISPLAY : printf("a CGA display adapter.\n");
break;
case LS_MONODISPLAY : printf("a Monochrome display card.\n");
break;
case LS_VGAMONODISPLAY : printf("a Mono VGA display card.\n");
break;
case LS_VGACOLORDISPLAY : printf("a colour VGA display card.\n");
break;
default : printf("an unknown display card.\n");
break;
}
}





  3 Responses to “Category : C Source Code
Archive   : LSPD05-2.ZIP
Filename : 076.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/