Artifact d5c011eac5b8240f1be19ddccc342d7932c3d715:
- File tests/langbench/cat.l — part of check-in [69b737f5a1] at 2016-04-19 20:35:49 on branch little — Fork of Tcl used in the "Little" project. http://www.mcvoy.com/lm/little/index.html (user: dgp, size: 326) [annotate] [blame] [check-ins using]
void main(int ac, string av[]) { string buf; FILE f; int i; fconfigure("stdout", buffering:"full", translation:"binary"); for (i = 1; i < ac; ++i) { unless (f = open(av[i], "rb")) continue; while (gets(f, &buf) >= 0) { // roughly 40% slower than puts // printf("%s\n", buf); puts(buf); } close(f); } }