NCEPLIBS-bufr
11.5.0
Main Page
Related Pages
Data Types List
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Pages
cmpstia1.c
Go to the documentation of this file.
1
5
#include "
bufrlib.h
"
6
#include "
cfe.h
"
7
32
int
cmpstia1
(
const
void
*pe1,
const
void
*pe2 )
33
{
34
struct
code_flag_entry
*mype1 = (
struct
code_flag_entry
* ) pe1;
35
struct
code_flag_entry
*mype2 = (
struct
code_flag_entry
* ) pe2;
36
37
if
( mype1->
iffxyn
== mype2->
iffxyn
) {
38
if
( mype1->
ifval
== mype2->
ifval
) {
39
if
( mype1->
iffxynd
== mype2->
iffxynd
) {
40
if
( mype1->
ifvald
== mype2->
ifvald
)
return
0;
41
return
( mype1->
ifvald
< mype2->
ifvald
? -1 : 1 );
42
}
43
else
{
44
return
( mype1->
iffxynd
< mype2->
iffxynd
? -1 : 1 );
45
}
46
}
47
else
{
48
return
( mype1->
ifval
< mype2->
ifval
? -1 : 1 );
49
}
50
}
51
else
{
52
return
( mype1->
iffxyn
< mype2->
iffxyn
? -1 : 1 );
53
}
54
}
bufrlib.h
Define signatures to enable a number of BUFRLIB subprograms to be called directly from C application ...
code_flag_entry::ifval
f77int ifval
Code figure or bit number.
Definition:
cfe.h:52
code_flag_entry::iffxynd
f77int iffxynd
Bitwise representation of FXY number upon which this entry is dependent, if any.
Definition:
cfe.h:54
cmpstia1
int cmpstia1(const void *, const void *)
This function defines a comparison between two entries within the internal memory structure for stora...
Definition:
cmpstia1.c:32
code_flag_entry
This structure contains array and variable declarations used to store a master Code/Flag table entry...
Definition:
cfe.h:33
code_flag_entry::ifvald
f77int ifvald
Code figure or bit number upon which this entry is dependent, if any.
Definition:
cfe.h:55
code_flag_entry::iffxyn
f77int iffxyn
Bitwise representation of FXY number to which this entry belongs.
Definition:
cfe.h:51
cfe.h
Define signatures and declare variables for internal storage of master Code/Flag table entries...
nceplibs-bufr
src
cmpstia1.c
Generated by
1.8.5