Commit | Line | Data |
---|---|---|
1 | #ifndef FIO_LOG_H | |
2 | #define FIO_LOG_H | |
3 | ||
4 | #include <stdio.h> | |
5 | ||
6 | extern FILE *f_out; | |
7 | extern FILE *f_err; | |
8 | ||
9 | extern int log_err(const char *format, ...); | |
10 | extern int log_info(const char *format, ...); | |
11 | extern int log_local(const char *format, ...); | |
12 | ||
13 | #define log_valist(str, args) vfprintf(f_out, (str), (args)) | |
14 | ||
15 | #endif |