NCEPLIBS-bufr
12.0.1
|
Search for a specified occurrence of a specified mnemonic within a data subset definition, starting from a specified location. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | fstag (LUN, UTAG, NUTAG, NIN, NOUT, IRET) |
This subroutine finds the (NUTAG)th occurrence of mnemonic UTAG within the current overall subset definition, starting from parameter #(NIN) within the subset. More... | |
Search for a specified occurrence of a specified mnemonic within a data subset definition, starting from a specified location.
Definition in file fstag.f.
subroutine fstag | ( | LUN, | |
character*(*) | UTAG, | ||
NUTAG, | |||
NIN, | |||
NOUT, | |||
IRET | |||
) |
This subroutine finds the (NUTAG)th occurrence of mnemonic UTAG within the current overall subset definition, starting from parameter #(NIN) within the subset.
The subroutine searches forward from NIN if NUTAG is positive or else backward if NUTAG is negative.
[in] | LUN | - integer: I/O stream index into internal memory arrays. |
[in] | UTAG | - character*(*): mnemonic. |
[in] | NUTAG | - integer: ordinal occurrence of UTAG to search for within the overall subset definition, counting from parameter #(NIN) within the subset. The subroutine will search in a forward direction from parameter #(NIN) if NUTAG is positive or else in a backward direction if NUTAG is negative. |
[in] | NIN | - integer: location within the overall subset definition from which to begin searching for UTAG. |
[out] | NOUT | - integer: location of (NUTAG)th occurrence of UTAG. |
[out] | IRET | - integer: return code.
|
Definition at line 25 of file fstag.f.
References moda_usrint::inv, moda_usrint::nval, parstr(), and moda_tables::tag.
Referenced by gettagpr(), gettagre(), getvalnb(), nemspecs(), setvalnb(), and ufdump().