NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
fparsei.f
Go to the documentation of this file.
1C> @file
2C> @brief Extract integers from a free-format character string.
3C> @author Mark Iredell @date 1998-09-03
4
5C> This subprogram extracts integers 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> Integers may be separated by a comma or by blanks.
13C> @param[in] MARG integer maximum number of integers to parse.
14C>
15C> @param[out] KARG integer (MARG) numbers parsed.
16C> (from 0 to MARG values may be returned.)
17C>
18C> @note To determine the actual number of integers found in the string,
19C> KARG should be set to fill values before the call to FPARSEI() 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 fparsei(CARG,MARG,KARG)
25 CHARACTER*(*) CARG
26 INTEGER KARG(MARG)
27C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
28 READ(carg,*,iostat=ios) karg
29C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
30 END
subroutine fparsei(carg, marg, karg)
This subprogram extracts integers from a free-format character string.
Definition fparsei.f:25