Category : C Source Code
Archive   : CSRC2.ZIP
Filename : ERROR.C

 
Output of file : ERROR.C contained in archive : CSRC2.ZIP
/*
* e r r o r . c
*/

/*)LIBRARY
*/

#ifdef DOCUMENTATION

title error Fatal Error Exit
index Fatal error exit

synopsis
.s.nf
_error()

error(format, args)
char *format;
.s.f
documentation

Fatal error exits. _error() halts, error() prints something
on stderr and then halts.

bugs

#endif

#include

char recycle /* = 0 */ ; /* Prevents looping */

error(format, args)
char *format;
/*
* Error message before retiring.
*/
{
if (recycle++ == 0) {
c_doprnt(format, &args, stderr);
}
_error();
}

_error()
{
abort();
}



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