home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / ntcode / lkbackup / lzw.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-19  |  593 b   |  27 lines

  1. /* lzw.c -- compress files in LZW format.
  2.  * This is a dummy version avoiding patent problems.
  3.  */
  4.  
  5. #ifdef RCSID
  6. static char rcsid[] = "$Id: lzw.c,v 1.24 1993/09/26 04:51:29 ESullivan Exp $";
  7. #endif
  8.  
  9. #include "tailor.h"
  10. #include "gzip.h"
  11. #include "lzw.h"
  12.  
  13. static int msg_done = 0;
  14.  
  15. /* Compress in to out with lzw method. */
  16. int lzw(in, out)
  17.     int in, out;
  18. {
  19.     if (msg_done) return ERROR;
  20.     msg_done = 1;
  21.     fprintf(stderr,"output in compress .Z format not supported\n");
  22.     if (in != out) { /* avoid warnings on unused variables */
  23.         exit_code = ERROR;
  24.     }
  25.     return ERROR;
  26. }
  27.