From 36f71a7b5e5bacc784f3c5137d721797620924af Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sun, 20 Jun 2004 06:31:31 +0000 Subject: [PATCH] Agrando buffer para procesar archivos "chicos" completos y saco salida por salida estandar de forma binaria. De nuevo, espero que no moleste (parece que ya anda bien, no?) --- otros/mtf/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/otros/mtf/main.c b/otros/mtf/main.c index 38652da..9b7b459 100644 --- a/otros/mtf/main.c +++ b/otros/mtf/main.c @@ -3,22 +3,24 @@ #include #include +#define BUFFER_SIZE 2000000 + int main(int argc, char *argv[] ) { - int buff[BUFSIZ]; + int buff[BUFFER_SIZE]; int *pos; int len; int i; - len = fread(buff, 1, BUFSIZ, stdin); + len = fread(buff, 1, BUFFER_SIZE, stdin); buff[len] = '\0'; pos = jacu_mtf(buff, len); for(i=0; i