64 fprintf(stderr,
"fitblk abort: %s\n", why);
115 if (
inf->avail_out != 0)
138 quit(
"need one argument: size of output block");
139 ret = strtol(
argv[1],
argv + 1, 10);
141 quit(
"argument must be a number");
143 quit(
"need positive size of 8 or greater");
144 size = (unsigned)ret;
153 quit(
"out of memory");
160 quit(
"error reading input");
166 if (fwrite(
blk, 1, have, stdout) != have ||
ferror(stdout))
167 quit(
"error writing output");
174 "%u bytes unused out of %u requested (all input)\n",
188 quit(
"out of memory");
199 quit(
"out of memory");
214 quit(
"out of memory");
219 if (fwrite(
blk, 1, have, stdout) != have ||
ferror(stdout))
220 quit(
"error writing output");
230 "%u bytes unused out of %u requested (%lu input)\n",
int ZEXPORT deflateReset(z_streamp strm)
int ZEXPORT deflateEnd(z_streamp strm)
int ZEXPORT deflate(z_streamp strm, int flush)
int partcompress(FILE *in, z_streamp def)
int recompress(z_streamp inf, z_streamp def)
unsigned in(void *in_desc, z_const unsigned char **buf)
int ZEXPORT inflate(z_streamp strm, int flush)
int ZEXPORT inflateReset(z_streamp strm)
int ZEXPORT inflateEnd(z_streamp strm)
#define inflateInit(strm)
#define deflateInit(strm, level)
#define Z_DEFAULT_COMPRESSION
int inf(FILE *source, FILE *dest)
int def(FILE *source, FILE *dest, int level)