Uint32 i;
for(i=0; i<len; i++)
- printf("%c", data[(pos+i)%len]);
- printf("\n");
+ fprintf(stderr, "%c", data[(pos+i)%len]);
+ fprintf(stderr, "\n");
}
int generar_salida(char *data, t_BlockSort *bs, char *salida)
/* Guardo el k y el tamaƱo en el array */
memcpy(out, &leido, sizeof(Uint32));
memcpy(out+sizeof(Uint32), k, sizeof(Uint32));
- printf("%ld -> %ld\n", *k, *(Uint32 *)(out+sizeof(Uint32)));
bs->len = l;
}
i=0;
do {
dst[i++] = in[current].c;
- printf("(%c)", dst[i-1]);
current = in[current].pos;
- printf("[%d]", current);
} while (current != k);
- printf("\n");
free(in);
}