Annotation of 43BSD/contrib/icon/book/07/exor1.icn, revision 1.1.1.1

1.1       root        1: procedure exor(s1,s2)
                      2:    local count, line
                      3:    count := 0
                      4:    while line := read() do
                      5:       if find(s1,line) then {
                      6:          if not find(s2,line) then count +:= 1
                      7:          }
                      8:       else if find(s2,line) then count +:= 1
                      9:    return count
                     10: end

unix.superglobalmegacorp.com

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