aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--seq-read.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/seq-read.c b/seq-read.c
index 854bd77..0829960 100644
--- a/seq-read.c
+++ b/seq-read.c
@@ -8,22 +8,10 @@ main(void)
8 clock_t start = clock(); 8 clock_t start = clock();
9 size_t sum = 0; 9 size_t sum = 0;
10 10
11#if 1
12 int ch; 11 int ch;
13 while ((ch = getc(stdin)) != EOF) { 12 while ((ch = getc(stdin)) != EOF) {
14 sum += (unsigned char) ch; 13 sum += (unsigned char) ch;
15 } 14 }
16#endif
17
18#if 0
19 unsigned char buffer[1024];
20 size_t n;
21 while ((n = fread(buffer, 1, sizeof buffer, stdin)) > 0) {
22 for ( size_t z = 0; z != n; ++z ) {
23 sum += buffer[z];
24 }
25 }
26#endif
27 15
28 clock_t end = clock(); 16 clock_t end = clock();
29 17