ascii is working
[ascii.git] / fdprintf.h
diff --git a/fdprintf.h b/fdprintf.h
new file mode 100644 (file)
index 0000000..d924e1c
--- /dev/null
@@ -0,0 +1,14 @@
+#ifndef __FDPRINTF_H__
+#define __FDPRINTF_H__
+
+int fdprintf (int fd, const char *fmt, ...);
+
+extern int _fd_stdout;
+extern int _fd_stderr;
+
+#define PRINTOUT(fmt...) fdprintf (_fd_stdout, fmt)
+#define PRINTERR(fmt...) fdprintf (_fd_stderr, fmt)
+
+#endif /* __FDPRINTF_H__ */
+
+/* vim: set ts=4 sw=4 et: */