Artifact 734a328dead63da319cde20aa54e0a3b8f4a2dac:
- File tests/langbench/grep.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: 218) [annotate] [blame] [check-ins using]
void main(int ac, string av[]) { string buf; int i; FILE f; for (i = 1; i < ac; ++i) { f = open(av[i], "rb"); while (gets(f, &buf) >= 0) { if (buf =~ /[^A-Za-z]fopen\(.*\)/) puts(buf); } close(f); } }