Category : C Source Code
Archive   : C-ALL.ZIP
Filename : TI723.ASC

 
Output of file : TI723.ASC contained in archive : C-ALL.ZIP







PRODUCT : Borland C++ NUMBER : 723
VERSION : 2.0
OS : DOS
DATE : September 18, 1991 PAGE : 1/1

TITLE : matherr and signal Handlers




/**************************************************************
This program illustrates how to use matherr and signal.
***************************************************************/

#include
#include
#include
#include

/*
New matherr function.
*/

int matherr(struct exception *s)
{
puts("matherr!! \n");
return 1;
}

/*
New signal handler.
*/

void catcher(void)
{
puts("catcher!!\n");
}

int main(void)
{
int x;

signal(SIGFPE,catcher);
x = log(-1);
return 0;
}















  3 Responses to “Category : C Source Code
Archive   : C-ALL.ZIP
Filename : TI723.ASC

  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/