From 61e7077b0c9b9bc76dc93b02b24e56f35580611d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicol=C3=A1s=20Dimov?= Date: Mon, 21 Jun 2004 19:34:41 +0000 Subject: [PATCH 1/1] primera implementacion del decoder mtf, diganme si hace falta devolver algun otro valor util --- src/mtf/main.c | 15 +++++++++++---- src/mtf/mtf.c | 12 ++++++++++++ src/mtf/mtf.h | 2 ++ 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/mtf/main.c b/src/mtf/main.c index c240f73..3f6f174 100644 --- a/src/mtf/main.c +++ b/src/mtf/main.c @@ -8,19 +8,26 @@ int main(int argc, char *argv[] ) { char buff[BUFFER_SIZE]; + char *z, *dato; int *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