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){
|
||||
lookAheadSize = BSIZE - head;
|
||||
}
|
||||
//printf("Buffer: %s\n",buff);
|
||||
//printf("window: %s\n", window);
|
||||
//printf("head: %d\n", head);
|
||||
int wsz = BSIZE;
|
||||
int msz = wsz;
|
||||
if (bufferSize < wsz){
|
||||
@ -57,15 +54,11 @@ int mycompress(char* buff,int size,char* outbuf){
|
||||
|
||||
|
||||
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]);
|
||||
k+=3;
|
||||
head+=size;
|
||||
|
||||
}else {
|
||||
//printf("00%c\n",buff[head]);
|
||||
sprintf(&outbuf[k],"00%c",buff[head]);
|
||||
k+=3;
|
||||
head+=1;
|
||||
|
Loading…
Reference in New Issue
Block a user