X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/de5da6745aa448b96eee01fbd9df0575629678b9..7e82309c7b430e006f63193a8fc0319e43822d7a:/src/mtf/main.c?ds=sidebyside diff --git a/src/mtf/main.c b/src/mtf/main.c index 9b7b459..796950a 100644 --- a/src/mtf/main.c +++ b/src/mtf/main.c @@ -7,18 +7,26 @@ int main(int argc, char *argv[] ) { - int buff[BUFFER_SIZE]; - int *pos; + char buff[BUFFER_SIZE]; + char *z, *dato; + char *pos; int len; - int i; + int i, size; + len = fread(buff, 1, BUFFER_SIZE, stdin); buff[len] = '\0'; - pos = jacu_mtf(buff, len); + for(i=0; i