Emoslib is now deprecated

A subroutine which can be called from FORTRAN to write a block of bytes to an unblocked binary file. The return status code must be checked after calling the subroutine.

The format and arguments for the subroutine are:

      SUBROUTINE PBWRITE (KUNIT, KARRAY, KOUNT, KRET)

Input parameters are INTEGERs.

 

PBWRITE input arguments
KUNITIndex of a C file pointer obtained from PBOPEN
KARRAYAn integer array holding the bytes to be written to file
KOUNTThe number of BYTES to write to the file

The output parameter is an INTEGER.

 

PBWRITE output arguments
KRET
Status return code:
  >=0, number of bytes written to the file
   -1, error writing to the file