home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / ipl / progs / strimlen.icn < prev    next >
Text File  |  2001-06-10  |  808b  |  33 lines

  1. ############################################################################
  2. #
  3. #    File:     strimlen.icn
  4. #
  5. #    Subject:  Program produce lengths of string images
  6. #
  7. #    Author:   Ralph E. Griswold
  8. #
  9. #    Date:     May 5, 1996
  10. #
  11. ############################################################################
  12. #
  13. #   This file is in the public domain.
  14. #
  15. ############################################################################
  16. #
  17. #  This program is a filter that reads images of Icon strings from standard
  18. #  input and writes the lengths of the strings to standard output.
  19. #
  20. ############################################################################
  21. #
  22. #  Links:  ivalue
  23. #
  24. ############################################################################
  25.  
  26. link ivalue
  27.  
  28. procedure main()
  29.  
  30.    while write(*ivalue(read()))
  31.  
  32. end
  33.