26void bomb(
char *error,
char *usage) {
28 fprintf(stderr,
"error: %s\n", error);
30 fprintf(stderr,
"usage: %s\n", usage);
44long bombre(
char *error,
char *usage,
long return_value) {
46 fprintf(stderr,
"error: %s\n", error);
48 fprintf(stderr,
"usage: %s\n", usage);
68 va_start(argp,
template);
76 j = va_arg(argp,
long int);
80 d = va_arg(argp,
double);
81 printf(
"%21.15le", d);
84 d = va_arg(argp,
double);
88 d = va_arg(argp,
double);
89 printf(
"%21.15lg", d);
97 c = va_arg(argp,
int);
101 i = va_arg(argp,
int);
105 s = va_arg(argp,
char *);
109 d = va_arg(argp,
double);
110 printf(
"%21.15e", d);
113 d = va_arg(argp,
double);
117 d = va_arg(argp,
double);
118 printf(
"%21.15g", d);
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.