You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
314 B
23 lines
314 B
16 years ago
|
/* For general debugging purposes */
|
||
|
|
||
|
#include "../perf.h"
|
||
|
#include <string.h>
|
||
|
#include <stdarg.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int verbose = 0;
|
||
|
|
||
|
int eprintf(const char *fmt, ...)
|
||
|
{
|
||
|
va_list args;
|
||
|
int ret = 0;
|
||
|
|
||
|
if (verbose) {
|
||
|
va_start(args, fmt);
|
||
|
ret = vfprintf(stderr, fmt, args);
|
||
|
va_end(args);
|
||
|
}
|
||
|
|
||
|
return ret;
|
||
|
}
|