File:  [CSRG BSD Unix] / 43BSD / contrib / icon / book / f / cdigit.icn
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

procedure cdigit(s)
   local s1
   s1 := ""
    s ? {
      &pos := 0
      while s1 := "," || move(-3) || s1
      if pos(1) then s1 := s1[2:0]
      else s1 := tab(1) || s1
      }
   return s1
end

unix.superglobalmegacorp.com

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