#ifndef __FPRINTF_H__
#define __FPRINTF_H__
-#include <stddef.h>
-#include <stdio.h>
+int fdprintf (int fd, const char *fmt, ...);
-size_t _fprintf (FILE *fid, const char *fmt, ...);
+extern int _fdout;
+extern int _fderr;
+
+#define PRINTOUT(fmt...) fdprintf (_fdout, fmt)
+#define PRINTERR(fmt...) fdprintf (_fderr, fmt)
#endif /* __FPRINTF_H__ */