Category : C Source Code
Archive   : MTVSRC.ZIP
Filename : MATHERR.C

 
Output of file : MATHERR.C contained in archive : MTVSRC.ZIP
#include
#include
#include "config.h"

#if 0
int matherr( struct exception *e)
{
fprintf(stderr,"fudge %d \"%s\" %f %f\n",e->type,e->name,e->arg1,e->arg2);
e->retval=HUGE;
return 1;
}
#endif

#ifdef DIVIDE
double divide( char c, double top, double bottom)
{
#if 0
return (bottom==0.0)?HUGE:top/bottom;
#else
#if 0
return top/bottom;
#else
if (bottom==0.0) {
/* printf("(%c:%f/%f)",c,top,bottom);*/
return HUGE;
}
else
return top/bottom;
#endif
#endif
}
#endif



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