[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / ghc / misc / examples / cats / ccat4.c
1 #include <stdio.h>
2
3 main ()
4 {
5     char c[4096];
6     int  n;
7
8     while ((n=fread(c,1,4096,stdin)) > 0) {
9         fwrite(c,1,n,stdout);
10     }
11     exit(0);
12 }
13
14 /*
15 --  8,937,757 bytes/sec ( 600KB input)
16 -- 12,146,094 bytes/sec ( 9.3MB input)
17 --  8,658,233 bytes/sec (25.5MB input)
18 */