NCEPLIBS-bufr 11.7.1
|
Search for a specified master Code/Flag table entry. More...
Go to the source code of this file.
Functions | |
void | srchtbf (f77int *ifxyi, f77int *ivali, f77int *ifxyd, f77int *mxfxyd, f77int *ivald, char *meaning, f77int *mxmng, f77int *lnmng, f77int *iret) |
This subroutine searches for a specified FXY number and associated value (code figure or bit number) within the internal memory structure for storage of master Code/Flag table entries, and if found returns the associated meaning as a character string. More... | |
Search for a specified master Code/Flag table entry.
Definition in file srchtbf.c.
void srchtbf | ( | f77int * | ifxyi, |
f77int * | ivali, | ||
f77int * | ifxyd, | ||
f77int * | mxfxyd, | ||
f77int * | ivald, | ||
char * | meaning, | ||
f77int * | mxmng, | ||
f77int * | lnmng, | ||
f77int * | iret | ||
) |
This subroutine searches for a specified FXY number and associated value (code figure or bit number) within the internal memory structure for storage of master Code/Flag table entries, and if found returns the associated meaning as a character string.
The search may optionally include a specified second FXY number and associated value upon which the first FXY number and its associated value depend, for example when the meaning of an originating sub-center value depends on the identity of the originating center for which the sub-center in question is a member.
[in] | ifxyi | – f77int*: Bit-wise representation of FXY number to search for |
[in] | ivali | – f77int*: Value (code figure or bit number) associated with ifxyi |
[in,out] | ifxyd | – f77int*:
|
[in] | ivald | – f77int*: Value (code figure or bit number) associated with the FXY number in ifxyd[0]; set to (-1) whenever ifxyd[0] is also set to (-1) |
[in] | mxfxyd | – f77int*: Dimensioned size (in f77ints) of ifxyd; used by the subroutine to ensure that it doesn't overflow the ifxyd array |
[in] | mxmng | – f77int*: Dimensioned size (in bytes) of meaning string; used by the subroutine to ensure that it doesn't overflow the meaning string |
[out] | meaning | – char*: Meaning corresponding to ifxyi and ivali (and to ifxyd[0] and ivald, if specified on input) |
[out] | lnmng | – f77int*: Length (in bytes) of string returned in CMEANG |
[out] | iret | – f77int*: return code
|
Program history log:
Date | Programmer | Comments |
---|---|---|
2018-01-11 | J. Ator | Original author |
Definition at line 74 of file srchtbf.c.
References cfe, cmpstia1(), cmpstia2(), code_flag_entry::iffxyn, code_flag_entry::iffxynd, code_flag_entry::ifmeaning, code_flag_entry::ifval, code_flag_entry::ifvald, and nmtf.
Referenced by getcfmng(), and ufdump().