diff toys/bzcat.c @ 54:60a7fb8ddeb4

Add a quick and dirt bzcat (stdin to stdout only for the moment) to test out the bunzip2 library.
author Rob Landley <rob@landley.net>
date Tue, 16 Jan 2007 13:26:02 -0500
parents
children 67ee3a0b76e1
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toys/bzcat.c	Tue Jan 16 13:26:02 2007 -0500
@@ -0,0 +1,14 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * bzcat.c - decompress stdin to stdout using bunzip2.
+ */
+
+#include "toys.h"
+
+int bzcat_main(void)
+{
+	char *error = bunzipStream(0, 1);
+
+	if (error) error_exit(error);
+	return 0;
+}