Main Page | Class List | Directories | File List | Class Members | File Members

lzw.c

Go to the documentation of this file.
00001 /* lzw.c -- compress files in LZW format.
00002  * This is a dummy version avoiding patent problems.
00003  */
00004 
00005 #ifdef RCSID
00006 static char rcsid[] = "$Id: lzw.c,v 1.3 1999/10/06 05:01:31 eggert Exp $";
00007 #endif
00008 
00009 #include <config.h>
00010 #include "tailor.h"
00011 #include "gzip.h"
00012 #include "lzw.h"
00013 
00014 static int msg_done = 0;
00015 
00016 /* Compress in to out with lzw method. */
00017 int lzw(in, out)
00018     int in, out;
00019 {
00020     if (msg_done) return ERROR;
00021     msg_done = 1;
00022     fprintf(stderr,"output in compress .Z format not supported\n");
00023     if (in != out) { /* avoid warnings on unused variables */
00024         exit_code = ERROR;
00025     }
00026     return ERROR;
00027 }

© sourcejam.com 2005-2008