2014-03-23 09:50:23 -06:00
|
|
|
/* > satutl.c
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "sgdp4h.h"
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
void fatal_error(const char *format, ...)
|
|
|
|
{
|
|
|
|
va_list arg_ptr;
|
|
|
|
|
|
|
|
fflush(stdout);
|
|
|
|
|
|
|
|
fprintf(stderr, "\nDundee Satellite Lab fatal run-time error:\n");
|
|
|
|
|
|
|
|
va_start(arg_ptr, format);
|
|
|
|
vfprintf(stderr, format, arg_ptr);
|
|
|
|
va_end(arg_ptr);
|
|
|
|
|
2015-04-16 01:31:57 -06:00
|
|
|
// fprintf(stderr, "\nNow terminating the program...\n");
|
|
|
|
// fflush(stderr);
|
2014-03-23 09:50:23 -06:00
|
|
|
|
2015-04-16 01:31:57 -06:00
|
|
|
// exit(5);
|
|
|
|
return;
|
2014-03-23 09:50:23 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ===================================================================== */
|