summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/gzip/lzw.c
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1993-06-18 18:39:41 +0000
committernate <nate@FreeBSD.org>1993-06-18 18:39:41 +0000
commit12c4fd169736d45ab4b2b3f55301ecceaf9c67b3 (patch)
treeff423954f6049c9cdc9673d76e5867f99adeeb7e /gnu/usr.bin/gzip/lzw.c
parent7067738d6ce62410bf037507ed279733f38b3910 (diff)
downloadFreeBSD-src-12c4fd169736d45ab4b2b3f55301ecceaf9c67b3.zip
FreeBSD-src-12c4fd169736d45ab4b2b3f55301ecceaf9c67b3.tar.gz
Gzip 1.1
Diffstat (limited to 'gnu/usr.bin/gzip/lzw.c')
-rw-r--r--gnu/usr.bin/gzip/lzw.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/usr.bin/gzip/lzw.c b/gnu/usr.bin/gzip/lzw.c
new file mode 100644
index 0000000..cd09047
--- /dev/null
+++ b/gnu/usr.bin/gzip/lzw.c
@@ -0,0 +1,27 @@
+/* lzw.c -- compress files in LZW format.
+ * This is a dummy version avoiding patent problems.
+ */
+
+#ifndef lint
+static char rcsid[] = "$Id: lzw.c,v 0.8 1993/04/25 08:09:58 jloup Exp $";
+#endif
+
+#include "tailor.h"
+#include "gzip.h"
+#include "lzw.h"
+
+#include <stdio.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");
+ in++, out++; /* avoid warnings on unused variables */
+ exit_code = ERROR;
+ return ERROR;
+}
OpenPOWER on IntegriCloud