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) {
18 fp = stdin; /*fopen(argv[1], "r");*/
25 data = malloc(sizeof(char)*len);
26 salida = malloc(sizeof(char)*(len+1));
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);
56 printf("Total bytes : %ld\n", total);