1993-07-09 19:47:36 +04:00
|
|
|
/* lzw.c -- compress files in LZW format.
|
|
|
|
* This is a dummy version avoiding patent problems.
|
|
|
|
*/
|
|
|
|
|
1993-10-16 02:05:16 +03:00
|
|
|
#ifdef RCSID
|
|
|
|
static char rcsid[] = "$Id: lzw.c,v 1.2 1993/10/15 23:05:44 jtc Exp $";
|
1993-07-09 19:47:36 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#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");
|
1993-10-16 02:05:16 +03:00
|
|
|
if (in != out) { /* avoid warnings on unused variables */
|
|
|
|
exit_code = ERROR;
|
|
|
|
}
|
1993-07-09 19:47:36 +04:00
|
|
|
return ERROR;
|
|
|
|
}
|