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

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

main()
{
/* Print the starting message */
printf("The computer was booted up in ");

/* Find primary display mode */
switch (find_primary())
{
case LS_PRIMARY_EGA : printf("EGA");
break;
case LS_PRIMARY_CGA : printf("CGA");
break;
case LS_PRIMARY_MONOHERC : printf("Monochrome/Hercules");
break;
}

/* Print ending message, exit */
printf(" mode.\n");
}


  3 Responses to “Category : C Source Code
Archive   : LSPD05-2.ZIP
Filename : 092.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/