31 char brtstr[50] =
"BUFRLIB: ARALLOCC FAILED ALLOCATING";
44 if (!(
pb = malloc((nfiles+1) *
sizeof(FILE *))))
bort_f(brtstr);
46 if (!(
lstpos = malloc((nfiles+1) *
sizeof(fpos_t))))
bort_f(brtstr);
57 if (!(
cbscl_c = malloc(mxmtbb * 4 *
sizeof(
char))))
bort_f(brtstr);
59 if (!(
cbsref_c = malloc(mxmtbb * 12 *
sizeof(
char))))
bort_f(brtstr);
61 if (!(
cbbw_c = malloc(mxmtbb * 4 *
sizeof(
char))))
bort_f(brtstr);
63 if (!(
cbunit_c = malloc(mxmtbb * 24 *
sizeof(
char))))
bort_f(brtstr);
65 if (!(
cbmnem_c = malloc(mxmtbb * 8 *
sizeof(
char))))
bort_f(brtstr);
67 if (!(
cbelem_c = malloc(mxmtbb * 120 *
sizeof(
char))))
bort_f(brtstr);
71 if (!(
cdseq_c = malloc(mxmtbd * 120 *
sizeof(
char))))
bort_f(brtstr);
73 if (!(
cdmnem_c = malloc(mxmtbd * 8 *
sizeof(
char))))
bort_f(brtstr);
77 if (!(
idefxy_c = malloc(mxmtbd * maxcd *
sizeof(
int))))
bort_f(brtstr);
79 if (!(
iafpk = malloc(mxnaf *
sizeof(
int))))
bort_f(brtstr);
void arallocc(void)
Dynamically allocate C language arrays.
void ardllocc(void)
Free all memory that was dynamically allocated during a previous call to subroutine arallocc().
int igetprm_f(char *cprmnm)
Get the current value of a parameter.
Enable a number of NCEPLIBS-bufr subprograms to be called from within the C part of the library.
void bort_f(char *errstr)
Log one error message and abort application program.
Declare variables for reading or writing BUFR messages via a C language interface.
fpos_t * lstpos
Byte positions of last successful reads from files corresponding to pb, for files that were opened fo...
Declare variables for internal storage of master Table B and Table D entries.
int * idefxy_c
WMO bit-wise representations of child descriptors for master Table D sequences; copied from Fortran i...
char(* cbsref_c)[12]
Master Table B reference values; copied from Fortran cbsref array.
char(* cbelem_c)[120]
Master Table B element names; copied from Fortran cbelem array.
int * idfxyn_c
WMO bit-wise representations of master Table D FXY numbers; copied from Fortran idfxyn array.
char(* cdmnem_c)[8]
Master Table D mnemonics; copied from Fortran cdmnem array.
char(* cdseq_c)[120]
Master Table D sequence names; copied from Fortran cdseq array.
char(* cbscl_c)[4]
Master Table B scale factors; copied from Fortran cbscl array.
char(* cbunit_c)[24]
Master Table B units; copied from Fortran cbunit array.
char(* cbmnem_c)[8]
Master Table B mnemonics; copied from Fortran cbmnem array.
char(* cbbw_c)[4]
Master Table B bit widths; copied from Fortran cbbw array.
int * iafpk
WMO bit-wise representations of associated fields within master Table D sequences.
int * ibfxyn_c
WMO bit-wise representations of master Table B FXY numbers; copied from Fortran ibfxyn array.
int * ndelem_c
Number of child descriptors for master Table D sequences; copied from Fortran ndelem array.