Commit | Line | Data |
---|---|---|
1 | #ifndef __FDPRINTF_H__ | |
2 | #define __FDPRINTF_H__ | |
3 | ||
4 | int fdprintf (int fd, const char *fmt, ...); | |
5 | ||
6 | extern int stdfdin; | |
7 | extern int stdfdout; | |
8 | extern int stdfderr; | |
9 | ||
10 | #define PRINTOUT(fmt...) fdprintf (stdfdout, fmt) | |
11 | #define PRINTERR(fmt...) fdprintf (stdfderr, fmt) | |
12 | ||
13 | #endif /* __FDPRINTF_H__ */ | |
14 | ||
15 | /* vim: set ts=4 sw=4 et: */ |