X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/38539d358104fc364cd4bc900742acdefbad30ce..7e0696972e32e6cab306020b0fca853810087211:/src/blocksorting/main.c diff --git a/src/blocksorting/main.c b/src/blocksorting/main.c index e83a28a..56e849b 100644 --- a/src/blocksorting/main.c +++ b/src/blocksorting/main.c @@ -1,6 +1,21 @@ #include "bs.h" +void print_v(char *txt, char *data, Uint32 len) +{ + Uint32 i; + + printf("%s", txt); + + for(i=0; i %ld\n", salida, k); - bs_restore(orig, salida, k, i); - printf("Orig : %s\n", orig); + bs_restore(orig, salida+sizeof(Uint32), k, i); + print_v("Leido : ", data, i); + print_v("BS : ", salida+sizeof(Uint32), i); + /*print_v("Restorado : ", orig, i);*/ } else fwrite(salida, 1, i, stdout); }