delete printf
This commit is contained in:
parent
32babe85bc
commit
dc3263b39c
@ -33,9 +33,6 @@ int mycompress(char* buff,int size,char* outbuf){
|
|||||||
if((size - head) < lookAheadSize){
|
if((size - head) < lookAheadSize){
|
||||||
lookAheadSize = BSIZE - head;
|
lookAheadSize = BSIZE - head;
|
||||||
}
|
}
|
||||||
//printf("Buffer: %s\n",buff);
|
|
||||||
//printf("window: %s\n", window);
|
|
||||||
//printf("head: %d\n", head);
|
|
||||||
int wsz = BSIZE;
|
int wsz = BSIZE;
|
||||||
int msz = wsz;
|
int msz = wsz;
|
||||||
if (bufferSize < wsz){
|
if (bufferSize < wsz){
|
||||||
@ -57,15 +54,11 @@ int mycompress(char* buff,int size,char* outbuf){
|
|||||||
|
|
||||||
|
|
||||||
if(size > 0){
|
if(size > 0){
|
||||||
//printf("%d",offset);
|
|
||||||
//printf("%d",size-1);
|
|
||||||
//printf("%c\n",buff[head+size-1]);
|
|
||||||
sprintf(&outbuf[k],"%d%d%c",offset,size-1,buff[head+size-1]);
|
sprintf(&outbuf[k],"%d%d%c",offset,size-1,buff[head+size-1]);
|
||||||
k+=3;
|
k+=3;
|
||||||
head+=size;
|
head+=size;
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
//printf("00%c\n",buff[head]);
|
|
||||||
sprintf(&outbuf[k],"00%c",buff[head]);
|
sprintf(&outbuf[k],"00%c",buff[head]);
|
||||||
k+=3;
|
k+=3;
|
||||||
head+=1;
|
head+=1;
|
||||||
|
Loading…
Reference in New Issue
Block a user