PIPS
|
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
Go to the source code of this file.
Functions | |
void | vect_error (char *name, char *fmt,...) |
package vecteur More... | |
void vect_error | ( | char * | name, |
char * | fmt, | ||
... | |||
) |
package vecteur
error.c
INTLIBRARY void vect_error(va_dcl va_list): 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). VECT_ERROR should be called as:
VECT_ERROR(function_name, format, expression-list)
where function_name is a string containing the name of the function calling VECT_ERROR, and where format and expression-list are passed as arguments to vprintf. VECT_ERROR terminates execution with abort. ARARGS0
print name of function causing error
print out remainder of message
create a core file for debug
name | ame |
fmt | mt |
Definition at line 50 of file error.c.
References abort, and fprintf().
Referenced by vect_div(), vect_max(), vect_min(), and vect_proport().