freebsd-dev/gnu/usr.bin/gzip/lzw.c

27 lines
544 B
C
Raw Normal View History

1993-06-18 18:39:41 +00:00
/* lzw.c -- compress files in LZW format.
* This is a dummy version avoiding patent problems.
*/
#ifdef RCSID
1997-02-22 15:48:31 +00:00
static char rcsid[] = "$Id$";
1993-06-18 18:39:41 +00: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");
if (in != out) { /* avoid warnings on unused variables */
exit_code = ERROR;
}
1993-06-18 18:39:41 +00:00
return ERROR;
}