 }
 
 //cpu
-void writeFile(FILE * out, int part, int sizes[], char * str_out[], int offset){
+void writeFile(FILE * out, int part, int sizes[], char * str_out, int offset){
 	int i = 0;
 	while(i < sizes[part]){
 		putc(str_out[offset + i++], out);
 	}
 	putc(EOF, out);
 }
-
 
 int main(int argc, char *argv[]) {
     char *s, *in;

	dad[p] = NIL;  /* remove p */
}

// TODO: device
__device__ void DeleteNode(int p, int lson[], int rson[], int dad[])  /* deletes node p from tree */
{
	int  q;

		}
	} while (len > 0);	/* until length of string to be processed is zero */
	if (code_buf_ptr > 1) {		/* Send remaining code. */
		for (i = 0; i < code_buf_ptr; i++){
      str_out[codesize+i+offset] = code_buf[i];
    }
		codesize += code_buf_ptr;
	}
	//printf("In : %ld bytes\n", textsize);	/* Encoding is done. */
