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 bs_solve(data, salida, bs, &k, i);
45 /* XXX ACA SALIDA DEBERIA PASAR A LA SIGUIENTE ETAPA XXX */
47 printf("BS : %s -> %ld\n", salida, k);
48 bs_restore(orig, salida, k, i);
49 printf("Orig : %s\n", orig);
51 fwrite(salida, 1, i, stdout);
56 /*printf("Total bytes : %ld\n", total);*/