⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lzw.c

📁 GZip Compress Souce Code
💻 C
字号:
/* lzw.c -- compress files in LZW format. * This is a dummy version avoiding patent problems. */#ifdef RCSIDstatic char rcsid[] = "$Id: lzw.c,v 0.9 1993/06/10 13:27:31 jloup Exp $";#endif#include "tailor.h"#include "gzip.h"#include "lzw.h"#include "bsdebug.h"//#define _DEBUG_LZW_C_#ifdef DBGPrintfi#undef DBGPrintfi#endif#ifdef DBGPrintfo#undef DBGPrintfo#endif#if defined(_TRACEHELPER_DEBUG_ALL_)  #define DBGPrintfi(a) DbgPrintfi a;  #define DBGPrintfo(a) DbgPrintfo a;#elif defined(_DEBUG_LZW_C_) && defined(_TRACEHELPER_DEBUG_EACH_OF_FILE_)  #define DBGPrintfi(a) DbgPrintfi a;  #define DBGPrintfo(a) DbgPrintfo a;#else  #define DBGPrintfi(a)  #define DBGPrintfo(a)#endifstatic int msg_done = 0;/* Compress in to out with lzw method. */int lzw(in, out)    int in, out;{  DBGPrintfi(("lzw(In)\r\n"));  {    if (msg_done) {                    DBGPrintfo(("lzw(out1)\r\n"));                   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;    }    DBGPrintfo(("lzw(out2)\r\n"));    return  ERROR;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -