Next: , Previous: dbflag, Up: Debug


9.3 die

print a formatted message and exit with error

Synopsis

     #include <suplib/debug.h>
     
     
     
void die( char *format, ... );

Parameters

char *format
the printf style format string for the message
...
the arguments that make up the message

Description

die is a quick and dirty method of printing an error message and then exiting a program. It's just a combination of fprintf and exit, sending the output to stderr and exiting with an exit value of ‘1

Author

Diab Jerius