aboutsummaryrefslogtreecommitdiff
path: root/toys/bzcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/bzcat.c')
-rw-r--r--toys/bzcat.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/toys/bzcat.c b/toys/bzcat.c
new file mode 100644
index 00000000..30437bb8
--- /dev/null
+++ b/toys/bzcat.c
@@ -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;
+}