X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/784073eb4d4dba1995c35bf35d479c04e5f96e66..551c1b8346a4c4a5128a7cfe4d4804bf40b4a0d2:/src/mtf/mtf.c?ds=inline diff --git a/src/mtf/mtf.c b/src/mtf/mtf.c index e889817..6326b5e 100644 --- a/src/mtf/mtf.c +++ b/src/mtf/mtf.c @@ -16,31 +16,37 @@ void print_z(char *z, int len) fprintf(stderr, "\n"); } -char *jacu_mtf(char *datos, int len) +char *jacu_mtf(char *datos, int len, char **_z, int *z_len) { char *z; - int *pos; + char *pos; int i, size; pos = (char *)malloc(len*sizeof(char)); z = jacu_buscar_z(datos, len, &size); + (*_z) = jacu_buscar_z(datos, len, &size); + for(i=0; i