[转]解压HTTP gzip的
摘要:#include <stdlib.h>#include <string.h>#include <errno.h>#include <zlib.h>/* Compress data */int zcompress(Bytef *data, uLong ndata, Bytef *zdata, uLong *nzdata){z_stream c_stream;int err = 0; if(data && ndata > 0){c_stream.zalloc = (alloc_func)0;c_stream.zfree = (f
阅读全文
posted @ 2011-05-29 23:37