Next: , Previous: tf_leave, Up: Library Routines


3.5 tf_die

Exit a program, dumping the function stack.

Synopsis

     #include <tracefct/tracefct.h>
     
     
     
void tf_die( const char *format, ... );

Parameters

const char *format
a printf style format string. passed to vsprintf
...
additional arguments to be passed to vfprintf

Description

This function prints an error message to stderr as well as the tracefct output stream (if different from stderr) and then exits the program with a value of EXIT_FAILURE. The error message is passed in the same fashion as the arguments to vprintf or sprintf. The message may contain multiple output lines (i.e., multiple newline characters). If a trailing newline character is not specified, it will be appended.

Contrast this with tf_exit.