0
所以我有一個問題,我似乎無法找到答案。的zlib壓縮/解壓縮Linux編程
如果我containually壓縮小字符數組,並將它們添加到一個更大的字符數組,我可以解壓縮大型字符數組一次,並取回我所有的原始數據?
例如:
char arry1 = "Today is";
char arry2 = " a nice day";
char arryBig[20];
//pseudo code for compress, but you get the idea
compress(arry1)
strcpy(arryBig, arry1);
//again, pseudo code for compress
compress(arry2);
strcpy(arryBig+9, arry2);
uncompress(arryBig);
//does arryBig == "today is a nice day" ??
我想你必須拿出你自己的壓縮算法,支持:) – LiMuBei