This commit is contained in:
Valér Jakubčo 2022-01-23 23:30:22 +01:00
parent 178c8fb1ed
commit 1fb537bf51

View File

@ -7,12 +7,19 @@
#define BUFSIZE 2000000
#define BSIZE 9
int mycompress(char* buff,int size,char* outbuf){
//memcpy(outbuf,buff,size);
int k = 0;
int head = 0;
while(head < size && buff[head] > 0 ){
//
//
// Kod inspirovany riesenim
// pana Ing. Daniela Hladeka
//
//
//
int bufferSize = BSIZE;
if (head < bufferSize){
bufferSize = head;