79 void cobfl(
char *bfl,
char *io )
86 char foparg[3] =
" b";
96 for ( i = 0; ( ! isspace( bfl[i] ) && ! iscntrl( bfl[i] ) ); i++ ) {
98 sprintf( errstr,
"BUFRLIB: COBFL - INPUT FILENAME CONTAINS"
99 " MORE THAN %d CHARACTERS", MXFNLEN );
100 bort( errstr, ( f77int ) strlen( errstr ) );
107 if ( ( foparg[0] = (
char) tolower( lio ) ) ==
'r' ) {
110 else if ( foparg[0] ==
'w' ) {
114 sprintf( errstr,
"BUFRLIB: COBFL - SECOND ARGUMENT WAS (%c),"
115 " WHICH IS AN ILLEGAL VALUE", lio );
116 bort( errstr, ( f77int ) strlen( errstr ) );
123 if (
pbf[j] != NULL ) fclose(
pbf[j] );
128 if ( (
pbf[j] = fopen( lbf, foparg ) ) == NULL ) {
129 sprintf( errstr,
"BUFRLIB: COBFL - COULD NOT OPEN FILE %s", lbf );
130 bort( errstr, ( f77int ) strlen( errstr ) );
Define signatures to enable a number of BUFRLIB subprograms to be called directly from C application ...
FILE * pbf[2]
File pointers.
Define signatures and declare variables for reading or writing BUFR messages via a C language interfa...
subroutine wrdlen
This subroutine figures out some important information about the local machine on which the BUFRLIB s...
void cobfl(char *bfl, char *io)
This subroutine opens a new file for reading or writing BUFR messages via a C language interface...
subroutine bort(STR)
This subroutine calls subroutine errwrt() to log an error message, then calls subroutine bort_exit() ...