NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
fparsei.f File Reference

Extract integers from a free-format character string. More...

Go to the source code of this file.

Functions/Subroutines

subroutine fparsei (carg, marg, karg)
 This subprogram extracts integers from a free-format character string.
 

Detailed Description

Extract integers from a free-format character string.

Author
Mark Iredell
Date
1998-09-03

Definition in file fparsei.f.

Function/Subroutine Documentation

◆ fparsei()

subroutine fparsei ( character*(*)  carg,
  marg,
integer, dimension(marg)  karg 
)

This subprogram extracts integers from a free-format character string.

It is useful for parsing command arguments.

Program history log:

  • 1998-09-03 Mark Iredell
Parameters
[in]CARGcharacter*(*) string of ascii digits to parse. Integers may be separated by a comma or by blanks.
[in]MARGinteger maximum number of integers to parse.
[out]KARGinteger (MARG) numbers parsed. (from 0 to MARG values may be returned.)
Note
To determine the actual number of integers found in the string, KARG should be set to fill values before the call to FPARSEI() and the number of non-fill values should be counted after the call.
Author
Mark Iredell
Date
1998-09-03

Definition at line 24 of file fparsei.f.