+#include <stdio.h>
+#include <termios.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <signal.h>
+#include <stdlib.h>
+
+#define BUFFER_SIZE 1000000
+
+char * buffer;
+int sp;
+
+int main(int argc, char ** argv){
+ sp=0;
+ buffer=(char *) malloc(BUFFER_SIZE);
+ while (read(0, buffer+sp++,1)&& sp-BUFFER_SIZE);
+ fprintf(stderr,"Eingelesen: %i\n",--sp);
+ while(sp) write(1, buffer+--sp,1);
+
+} //main();
+// Ende.