4 void _print_(char *s, size_t len)
12 int main(int argc, char *argv[])
17 unsigned long int len, i, k, total;
23 fp = fopen(argv[1], "r");
25 } else if (argc == 2) {
33 data = malloc(sizeof(char)*len);
34 salida = malloc(sizeof(char)*(len+1+sizeof(unsigned long int)*2));
35 orig = malloc(sizeof(char)*(len+1));
46 while ((!feof(fp)) && (i < len)) {
51 /* lleno data mano! */
56 data[jj] = rand()%255;
60 bs_solve(data, salida, bs, &k, i);
62 /* XXX ACA SALIDA DEBERIA PASAR A LA SIGUIENTE ETAPA XXX */
64 printf("BS : %ld ", k);
66 bs_restore(orig, salida+sizeof(Uint32)*2, k, i);
70 fwrite(salida, 1, i, stdout);
75 /*printf("Total bytes : %ld\n", total);*/