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