         //allocate gpu mem
         checkCuda(cudaMalloc((void**) &str_in_cuda, size));
         checkCuda(cudaMalloc((void**) &str_out_cuda, size));
-        checkCuda(cudaMalloc((void**) &sizes_cuda, sizeof (int)*PARTITIONS));
+        checkCuda(cudaMalloc((void**) &sizes_cuda, sizeof(int)*PARTITIONS));
         //int i;
         /*for (i = 0; i < PARTITIONS; i++) {
             

}

//cpu
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;


#define PARTITIONS 8

FILE	*infile, *outfile;  /* input & output files */

struct stat st; /* to get file size */
