Writes multiple buffers to a file with a single call
#include <nwfileio.h> int gwrite ( int fildes, T_mwriteBufferStructure *bufferP, LONG numberOfBuffers, LONG *numberOfBuffersWritten);
(IN) Specifies the handle of the file to which data is to be written.
(IN) Points to an array of structures of type T_mwriteBufferStructure. Each structure contains a pointer to the buffer to be written and the number of bytes to be written.
(IN) Specifies the number of structures in bufferP.
(OUT) Points to the number of buffers actually written.
On success, returns the number of bytes written. On failure, returns EFAILURE and sets errno and NWErrno to EBADF for a bad file handle or to other error codes as appropriate.
The bufferP structure is defined in nwadv.h as:
char *mwriteBufferPointer LONG mwriteBufferLength int reserved