Category : Files from Magazines
Archive   : OCT91.ZIP
Filename : 2N10067A
LISTING 2
File: testbrk.c
This is the test driver for the routines in
breakout.asm.
Author: David Burki
------------------------------------------------------- */
#include
// define far a pointer to a void function
typedef void (far *PFV)();
// function prototypes
void insure(PFV);
void interrupt far pre_termination(void);
void cancel(void);
/* -------------------------------------------------------
function which performs any necessary clean-up before
terminating the application
------------------------------------------------------- */
void interrupt far pre_termination()
{
printf("\nIn the pre-termination function\npress any key\n");
getch();
exit(1);
}
// test driver main function
main()
{
// register the cancel function so exit will call it
atexit(cancel);
// install the breakout tool
insure((PFV)pre_termination);
// a never ending loop
for(;;)
;
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/