NCEPLIBS-w3emc  2.11.0
args_mod.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Wrapper for routines iargc and getarg.
3 C> @author Mark Iredell @date 1998-11-DD
4 
5 C> This Fortran Module acts as a wrapper to the system
6 C> routines IARGC and GETARG. Use of this module allows IARGC and
7 C> GETARG to work properly with 4-byte or 8-byte integer arguments.
8 C>
9 C> @author Mark Iredell @date 1998-11-DD
10  module args_mod
11  interface iargc
12  module procedure iargc_8
13  end interface
14  interface getarg
15  subroutine getarg(k,c)
16  integer(4) k
17  character*(*) c
18  end subroutine getarg
19  module procedure getarg_8
20  end interface
21  contains
22  integer(8) function iargc_8()
23  integer(4) iargc
24  external iargc
25  iargc_8=iargc()
26  end function iargc_8
27  subroutine getarg_8(k,c)
28  integer(8) k
29  character*(*) c
30  integer(4) k4
31  k4=k
32  call getarg(k4,c)
33  end subroutine getarg_8
34  end module args_mod
This Fortran Module acts as a wrapper to the system routines IARGC and GETARG.
Definition: args_mod.f:10