File:  [CSRG BSD Unix] / 43BSD / contrib / icon / libtest / distr / shuffile.out
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

      doll(&input,"standard input")
            inpt := &input

#	Last modified 6/16/83
#
         }
   tab := "\t"
               }
      every arg := !a do
procedure doll(ifd,name)
            {
         {
               {
         doll(inpt,arg)
            arg := "standard input"
end
            }
            if not (inpt := open(arg)) then
end
   if *a = 0 then
#
      {
   while line := read(ifd) do
procedure main(a)
#	LL(1)

         else
      long <:= x
         if arg == "-" then
   write(right(\short,6),tab,right(\long,6),tab,\name)
#	Line length
               next
   
#
   local arg, inpt
      }
#	Thomas R. Hicks
      /short := x
   else
      short >:=  x
               write(&errout,"Cannot open ",arg)
      x := *line
   long := 0
   local line, long, short, tab, x
#

unix.superglobalmegacorp.com

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