43 void nummtb( f77int *idn,
char *tab, f77int *ipt )
45 f77int *pifxyn, *pbs, nmt;
47 char adn[7], errstr[129];
49 if ( *idn >=
ifxy(
"300000", 6 ) ) {
51 pifxyn = &MSTABS_BASE(idfxyn)[0];
52 nmt = MSTABS_BASE(nmtd);
56 pifxyn = &MSTABS_BASE(ibfxyn)[0];
57 nmt = MSTABS_BASE(nmtb);
60 pbs = ( f77int * ) bsearch( idn, pifxyn, (
size_t ) nmt,
sizeof( f77int ),
61 (
int (*) (
const void *,
const void * ) )
cmpia );
63 cadn30( idn, adn,
sizeof( adn ) );
65 sprintf( errstr,
"BUFRLIB: NUMMTB - COULD NOT FIND DESCRIPTOR "
66 "%s IN MASTER TABLE %c", adn, *tab );
67 bort( errstr, ( f77int ) strlen( errstr ) );
Define signatures to enable a number of BUFRLIB subprograms to be called directly from C application ...
void nummtb(f77int *idn, char *tab, f77int *ipt)
C C SUBPROGRAM: NUMMTB C PRGMMR: ATOR ORG: NP12 DATE: 2009-03-23 C C ABSTRACT: THIS ROUTINE SEARCHES ...
function ifxy(ADSC)
THIS FUNCTION RETURNS THE INTEGER CORRESPONDING TO THE BIT-WISE REPRESENTATION OF AN INPUT CHARACTER ...
subroutine cadn30(IDN, ADN)
GIVEN THE BIT-WISE REPRESENTATION OF THE FXY VALUE FOR A DESCRIPTOR, THIS ROUTINE CALLS FUNCTION ADN3...
subroutine bort(STR)
This subroutine calls subroutine errwrt() to log an error message, then calls subroutine bort_exit() ...
Define signatures and declare variables for internal storage of master Table B and Table D entries...
int cmpia(const void *pf1, const void *pf2)
C C SUBPROGRAM: CMPIA C PRGMMR: ATOR ORG: NP12 DATE: 2009-03-23 C C ABSTRACT: THIS ROUTINE DEFINES A ...