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

Output of file : 107.C contained in archive : LSPD05-2.ZIP
/* Light Speed Reference Example Program */
/* Formatted graphics text output */
#include "lspeed.h"

/* Assign a few variables for formatting */
int number=25;
char text[] = "Hello there!";

/* Set graphics, register font */

/* Print a formatted text string */
ega_formattext(10, 10, LS_WHITE, LS_BLACK, STANDARD_FONT,
"%s Value equals %d...", text, number);
ega_writetext(10, 20, LS_YELLOW, LS_BLACK, STANDARD_FONT,
"The input format was %s Value equals %d...");
ega_writetext(10, 30, LS_CYAN, LS_BLACK, STANDARD_FONT,
"See the conversion applied to 'text' and 'number'");

/* Get a keypress, restore text and exit */
ega_writetext(5, 55, LS_WHITE, LS_BLUE, STANDARD_FONT,
"Press a key to exit...");

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