File:  [CSRG BSD Unix] / 43BSDTahoe / usr.bin / f77 / testf77 / tests / fs081.f
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

      integer function ff081 (idon01, iddn10, iddn20, idon02)
c
c     comment section
c
c     ff081
c
c         this function subprogram is called by the main program fm080.
c     the function dummy arguments idon01, iddn10 and iddn20 are
c     incremented by 2, 40 and 70 respectively before control is
c     returned to the calling program.  value of the function will be
c     the sum of the actual arguments as passed from calling program.
c
c      references
c        american national standard programming language fortran,
c              x3.9-1978
c
c        section 15.5.1, function subprogram and function statement
c
c     test section
c
c         function subprogram
c
      dimension  iddn10 (5),   iddn20 (4,4)
      ivon01 = idon01
      ivon02 = iddn10(2)
      ivon03 = iddn20(1,3)
      ivon04 = idon02
c
      ff081  = ivon01 + ivon02 + ivon03 + ivon04
      idon01 = ivon01 + 2
      iddn10 (2) = ivon02   + 40
      iddn20 (1,3) = ivon03 + 70
      iddn10 (4) = ivon02 + 40
      return
      end

unix.superglobalmegacorp.com

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