From 50633f8f4e8d629e65d96f83abd9f99ca2cad463 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 26 Apr 2016 20:55:49 +0000 Subject: gzip-1.8 --- lzw.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lzw.c (limited to 'lzw.c') diff --git a/lzw.c b/lzw.c new file mode 100644 index 0000000..fe5f004 --- /dev/null +++ b/lzw.c @@ -0,0 +1,23 @@ +/* lzw.c -- compress files in LZW format. + * This is a dummy version avoiding patent problems. + */ + +#include +#include "tailor.h" +#include "gzip.h" +#include "lzw.h" + +static int msg_done = 0; + +/* Compress in to out with lzw method. */ +int lzw(in, out) + int in, out; +{ + if (msg_done) return ERROR; + msg_done = 1; + fprintf(stderr,"output in compress .Z format not supported\n"); + if (in != out) { /* avoid warnings on unused variables */ + exit_code = ERROR; + } + return ERROR; +} -- cgit v1.2.1