home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OL.LZH / PROCS.LZH / VERSION.ICN < prev    next >
Text File  |  1991-09-05  |  670b  |  27 lines

  1. ############################################################################
  2. #
  3. #    Name:    version.icn
  4. #
  5. #    Title:    Produce Icon version number
  6. #
  7. #    Author:    Ralph E. Griswold
  8. #
  9. #    Date:    September 2, 1991
  10. #
  11. ############################################################################
  12. #
  13. #     This procedure produces the version number of Icon on which a
  14. #  program is running.  It only works if the &version is in the
  15. #  standard form.
  16. #
  17. ############################################################################
  18.  
  19. procedure version()
  20.  
  21.    &version ? {
  22.       tab(find("Version ") + 8) | fail
  23.       tab(many('0123456789.')) ? return tab(-1)
  24.       }
  25.  
  26. end
  27.