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