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