NCEPLIBS-bufr
12.1.0
|
C language interface for reading or writing BUFR messages. More...
Go to the source code of this file.
Functions | |
void | backbufr (int nfile) |
Backspace a BUFR file by one BUFR message. More... | |
void | cewind (int nfile) |
Rewind a BUFR file back to its beginning. More... | |
void | closfb (int nfile) |
Close a previously opened BUFR file. More... | |
int | crdbufr (int nfile, int *bufr, int mxwrd) |
Read the next message from a BUFR file that was previously opened for reading. More... | |
void | cwrbufr (int nfile, int *bufr, int nwrd) |
Write a BUFR message into a file that was previously opened for writing. More... | |
void | openab (int nfile, char *ufile) |
Open a new file for appending BUFR messages. More... | |
void | openrb (int nfile, char *ufile) |
Open a new file for reading BUFR messages. More... | |
void | openwb (int nfile, char *ufile) |
Open a new file for writing BUFR messages. More... | |
C language interface for reading or writing BUFR messages.
This interface is used internally by many of the Fortran language file-reading/writing subroutines and message-reading/writing subroutines within the NCEPLIBS-bufr software, in order to use C to directly read/write BUFR messages from/to files.
This in turn eliminates the need for IEEE Fortran control words within files, though such control words can still be included when writing BUFR messages to files (if desired) via a previous call to subroutine setblock().
Definition in file cread.c.
void backbufr | ( | int | nfile | ) |
void cewind | ( | int | nfile | ) |
void closfb | ( | int | nfile | ) |
int crdbufr | ( | int | nfile, |
int * | bufr, | ||
int | mxwrd | ||
) |
Read the next message from a BUFR file that was previously opened for reading.
nfile | - File ID. |
bufr | - BUFR message. |
mxwrd | - Number of elements in bufr array; used by the function to ensure that it doesn't overflow the array. |
Definition at line 114 of file cread.c.
References iupbs01_f(), lstpos, and pb.
void cwrbufr | ( | int | nfile, |
int * | bufr, | ||
int | nwrd | ||
) |
void openab | ( | int | nfile, |
char * | ufile | ||
) |
void openrb | ( | int | nfile, |
char * | ufile | ||
) |