From 636b5cf46650d3aa3bbc9b29feb0e07589085e3f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 16 Jan 2007 13:26:02 -0500 Subject: Add a quick and dirt bzcat (stdin to stdout only for the moment) to test out the bunzip2 library. --- toys/bzcat.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 toys/bzcat.c (limited to 'toys/bzcat.c') 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; +} -- cgit v1.2.3