comparison 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
comparison
equal deleted inserted replaced
53:41d55b5d49fd 54:60a7fb8ddeb4
1 /* vi: set sw=4 ts=4: */
2 /*
3 * bzcat.c - decompress stdin to stdout using bunzip2.
4 */
5
6 #include "toys.h"
7
8 int bzcat_main(void)
9 {
10 char *error = bunzipStream(0, 1);
11
12 if (error) error_exit(error);
13 return 0;
14 }