3 * Written by Jan Roeloffzen
15 #define log(outFile, fmt, ...) \
17 fprintf(outFile, fmt, ##__VA_ARGS__); \
19 fprintf(logFile, fmt, ##__VA_ARGS__); \
22 #define esclog(outFile, fmt, ...) \
24 log(outFile, KDBG_ESC_RESP fmt, ##__VA_ARGS__); \
27 #define clilog(outFile, fmt, ...) \
30 esclog(outFile, fmt, ##__VA_ARGS__) \
32 log(outFile, fmt, ##__VA_ARGS__); \
35 #define l2l_dbg(level, ...) \
37 if (opt_verbose >= level) \
38 fprintf(stderr, ##__VA_ARGS__); \
41 int file_exists(char *name
);
42 int mkPath(char *path
, int isDir
);
43 char *basename(char *path
);
44 const char *getFmt(const char *a
);
45 long my_atoi(const char *a
);
46 int isOffset(const char *a
);
47 int copy_file(char *src
, char *dst
);
48 int set_LogFile(FILE **plogFile
);