File: rev_f.f

package info (click to toggle)
cfortran 20210827-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 756 kB
  • sloc: ansic: 3,302; fortran: 959; makefile: 113; sh: 14
file content (21 lines) | stat: -rw-r--r-- 489 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
C /* rev_f.f */                  /* anonymous ftp@zebra.desy.de */
C /* An example from cfortran.h package. Requires rev.c or .C   */
C /* Burkhard Burow  burow@desy.de                 1990 - 1996. */

      subroutine rev(a)
      implicit none
      integer a(2),t
      t    = a(1)
      a(1) = a(2)
      a(2) = t
      return
      end

      integer function frev(a)
      implicit none
      integer a(2)
      frev = a(1)
      a(1) = a(2)
      a(2) = frev
      return
      end