Mercurial > hg > toybox
view toys/bzcat.c @ 64:67ee3a0b76e1
In bunzip replace setjmp/longjmp handling with error_exit(), replace string
based handling of a 6-byte header with with two 24-bit integer reads. Use
xmalloc() and xzalloc().
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 18 Jan 2007 22:00:12 -0500 |
parents | 60a7fb8ddeb4 |
children | 25447caf1b4b |
line wrap: on
line source
/* vi: set sw=4 ts=4: */ /* * bzcat.c - decompress stdin to stdout using bunzip2. */ #include "toys.h" int bzcat_main(void) { bunzipStream(0, 1); return 0; }