From 63781d0c9c5157db0302a61ed5cc2fd805758476 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicol=C3=A1s=20Dimov?= Date: Wed, 23 Jun 2004 04:08:44 +0000 Subject: [PATCH 1/1] copio el z para que no se tenga que procesar todo el choclo de nuevo --- src/mtf/main.c | 5 ++--- src/mtf/mtf.c | 7 ++----- src/mtf/mtf.h | 1 + 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/mtf/main.c b/src/mtf/main.c index 796950a..a6f9bda 100644 --- a/src/mtf/main.c +++ b/src/mtf/main.c @@ -11,11 +11,11 @@ int main(int argc, char *argv[] ) char *z, *dato; char *pos; int len; - int i, size; + int i, size, z_len; len = fread(buff, 1, BUFFER_SIZE, stdin); buff[len] = '\0'; - pos = jacu_mtf(buff, len); + pos = jacu_mtf(buff, len, &z, &z_len); for(i=0; i #include +#include char *jacu_mtf(char *datos, int len, char **_z, int *z_len); -- 2.43.0