1
0
Fork 0
sattools/src/ferror.c

31 lines
479 B
C
Raw Normal View History

2013-05-18 11:54:11 -06:00
/* > satutl.c
*
*/
#include "sgdp4h.h"
#include <stdarg.h>
void
fatal_error (const char *format, ...)
2013-05-18 11:54:11 -06:00
{
va_list arg_ptr;
2013-05-18 11:54:11 -06:00
fflush (stdout);
2013-05-18 11:54:11 -06:00
fprintf (stderr, "\nFatal run-time error:\n");
2013-05-18 11:54:11 -06:00
va_start (arg_ptr, format);
vfprintf (stderr, format, arg_ptr);
va_end (arg_ptr);
2013-05-18 11:54:11 -06:00
//fprintf(stderr, "\nNow terminating the program...\n");
// fflush(stderr);
2013-05-18 11:54:11 -06:00
// exit(5);
return;
2013-05-18 11:54:11 -06:00
}
/* ===================================================================== */