42 void DEBUG(
char flag,
const char *format, ...)
47 vfprintf(stdout, format, ap);
55 if (strcmp(param,
"c") == 0) {
58 if (strcmp(param,
"a") == 0) {
61 if (strcmp(param,
"s") == 0) {
67 void ERROR(
const char *format, ...)
71 char *error_string =
"Error: ";
72 char *new_format = (
char *)malloc(
sizeof(
char) * strlen(error_string) + (strlen(format)));
73 strcpy(new_format, error_string);
74 strcat(new_format, format);
75 vfprintf(stderr, new_format, ap);
81 void ERROR_UNLESS(
bool condition,
const char *format, ...)