PIPS
|
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
void | sc_error (char *name, char *fmt,...) |
package sc More... | |
void sc_error | ( | char * | name, |
char * | fmt, | ||
... | |||
) |
package sc
void sc_error(va_dcl va_alist) should be called to terminate execution and to core dump when data structures are corrupted or when an undefined operation is requested (zero divide for instance). SC_ERROR should be called as:
SC_ERROR(function_name, format, expression-list)
where function_name is a string containing the name of the function calling SC_ERROR, and where format and expression-list are passed as arguments to vprintf. SC_ERROR terminates execution with abort.
print name of function causing error
print out remainder of message
create a core file for debug
Definition at line 46 of file sc_error.c.
References abort, and fprintf().