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.
KUNIT | Index of a C file pointer obtained from PBOPEN |
KARRAY | An integer array holding the bytes to be written to file |
KOUNT | The number of BYTES to write to the file |
The output parameter is an INTEGER.
KRET | Status return code: >=0, number of bytes written to the file -1, error writing to the file |