4 int main(int argc, char *argv[])
9 unsigned long int len, i, k, total;
15 fp = fopen(argv[1], "r");
17 } else if (argc == 2) {
25 data = malloc(sizeof(char)*len);
26 salida = malloc(sizeof(char)*(len+1+sizeof(unsigned long int)*2));
27 orig = malloc(sizeof(char)*(len+1));
38 while ((!feof(fp)) && (i < len)) {
43 /* lleno data mano! */
48 data[jj] = rand()%255;
50 bs_solve(data, salida, bs, &k, i);
52 /* XXX ACA SALIDA DEBERIA PASAR A LA SIGUIENTE ETAPA XXX */
54 bs_restore(orig, salida+sizeof(Uint32)*2, k, i);
56 fwrite(salida, 1, i, stdout);
61 /*printf("Total bytes : %ld\n", total);*/