SDDSlib
|
Provides functions to report errors and abort the program. More...
#include "mdb.h"
Go to the source code of this file.
Functions | |
void | bomb (char *error, char *usage) |
Reports error messages to the terminal and aborts the program. | |
long | bombre (char *error, char *usage, long return_value) |
Reports error messages to the terminal and returns a specified value. | |
void | bombVA (char *template,...) |
Reports error messages using a printf-style template and aborts the program. | |
Provides functions to report errors and abort the program.
Definition in file bomb.c.
void bomb | ( | char * | error, |
char * | usage ) |
Reports error messages to the terminal and aborts the program.
This function prints the provided error and usage messages to the standard error stream and then terminates the program.
error | A string describing the error. |
usage | A string describing the correct usage. |
Definition at line 26 of file bomb.c.
long bombre | ( | char * | error, |
char * | usage, | ||
long | return_value ) |
Reports error messages to the terminal and returns a specified value.
This function prints the provided error and usage messages to the standard error stream and returns the given return value.
error | A string describing the error. |
usage | A string describing the correct usage. |
return_value | The value to return after reporting the messages. |
Definition at line 44 of file bomb.c.
void bombVA | ( | char * | template, |
... ) |
Reports error messages using a printf-style template and aborts the program.
This function accepts a format string and a variable number of arguments, formats the message accordingly, prints it to the standard output, and then terminates the program.
template | A printf-style format string. |
... | Variable arguments corresponding to the format string. |
Definition at line 60 of file bomb.c.