avoid silent data loss e.g., on NFS, due to unchecked close of stdout
[gzip.git] / lzw.c
blob0dc2fe063440cccc3de767cbf19cf755de8601fd
1 /* lzw.c -- compress files in LZW format.
2 * This is a dummy version avoiding patent problems.
3 */
5 #ifdef RCSID
6 static char rcsid[] = "$Id$";
7 #endif
9 #include <config.h>
10 #include "tailor.h"
11 #include "gzip.h"
12 #include "lzw.h"
14 static int msg_done = 0;
16 /* Compress in to out with lzw method. */
17 int lzw(in, out)
18 int in, out;
20 if (msg_done) return ERROR;
21 msg_done = 1;
22 fprintf(stderr,"output in compress .Z format not supported\n");
23 if (in != out) { /* avoid warnings on unused variables */
24 exit_code = ERROR;
26 return ERROR;