NCEPLIBS-bufr 11.7.1
cwbmg.c File Reference

Write a message to a BUFR file that was previously opened for writing via a C language interface. More...

#include "bufrlib.h"
#include "cobfl.h"

Go to the source code of this file.

Functions

void cwbmg (char *bmg, f77int *nmb, f77int *iret)
 This subroutine writes a BUFR message to the system file that was opened via the most recent call to subroutine cobfl() with io = 'w'. More...
 

Detailed Description

Write a message to a BUFR file that was previously opened for writing via a C language interface.

Definition in file cwbmg.c.

Function Documentation

◆ cwbmg()

void cwbmg ( char *  bmg,
f77int *  nmb,
f77int *  iret 
)

This subroutine writes a BUFR message to the system file that was opened via the most recent call to subroutine cobfl() with io = 'w'.

Author
J. Ator
Date
2005-11-29
Parameters
[in]bmg– char*: BUFR message to be written
[in]nmb– f77int*: Size (in bytes) of BUFR message in bmg
[out]iret– f77int*: return code
  • 0 = normal return
  • -1 = I/O error encountered while writing

This subroutine is designed to be easily callable from application program written in either C or Fortran.

The file to which the message is to be written must have already been opened for writing via a previous call to subroutine cobfl() with io = 'w'.

Program history log:

Date Programmer Comments
2005-11-29 J. Ator Original author

Definition at line 35 of file cwbmg.c.

References bort(), and pbf.