#include <string.h>
#include <stdlib.h>
+#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<len; i++)
- printf("%d ", pos[i]);
- printf("\n");
+ putchar(pos[i]);
free(pos);