1
0
Fork 0
sattools/src/ferror.c

30 lines
489 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, ...)
{
va_list arg_ptr;
fflush(stdout);
2022-08-06 11:49:39 -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);
2015-04-16 01:30:49 -06:00
//fprintf(stderr, "\nNow terminating the program...\n");
// fflush(stderr);
2013-05-18 11:54:11 -06:00
2015-04-16 01:30:49 -06:00
// exit(5);
return;
2013-05-18 11:54:11 -06:00
}
/* ===================================================================== */