NCEPLIBS-w3emc
2.12.0
Loading...
Searching...
No Matches
fparser.f
Go to the documentation of this file.
1
C> @file
2
C> @brief Extracts real numbers from a free-format character string.
3
C> @author Mark Iredell @date 1998-09-03
4
5
C> This subprogram extracts real numbers from a free-format
6
C> character string. It is useful for parsing command arguments.
7
C>
8
C> Program history log:
9
C> - 1998-09-03 Mark Iredell
10
C>
11
C> @param[in] CARG character*(*) string of ascii digits to parse.
12
C> Real numbers may be separated by a comma or by blanks.
13
C> @param[in] MARG integer maximum number of real numbers to parse.
14
C>
15
C> @param[out] RARG real (MARG) numbers parsed.
16
C> (from 0 to MARG values may be returned.)
17
C>
18
C> @note To determine the actual number of real numbers found in the string,
19
C> RARG should be set to fill values before the call to FPARSER() and
20
C> the number of non-fill values should be counted after the call.
21
C>
22
C> @author Mark Iredell @date 1998-09-03
23
C-----------------------------------------------------------------------
24
SUBROUTINE
fparser
(CARG,MARG,RARG)
25
CHARACTER*(*)
CARG
26
REAL
RARG(MARG)
27
C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
28
READ
(carg,*,iostat=ios) rarg
29
C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
30
END
fparser
subroutine fparser(carg, marg, rarg)
This subprogram extracts real numbers from a free-format character string.
Definition
fparser.f:25
src
fparser.f
Generated by
1.9.8