Annotation of 43BSD/contrib/icon/book/02/break3.icn, revision 1.1

1.1     ! root        1: procedure main()
        !             2:    repeat {                    # exit repeat if eof
        !             3:       if not (headline := read()) then break
        !             4:       count := 1
        !             5:       while line := read() do {        # exit while if "end"
        !             6:          count := count + 1
        !             7:          if match("end",line) then break
        !             8:          }
        !             9:       write(headline," : ",count)
        !            10:       }
        !            11: end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.