Writes a specified number of bytes to a file.
int INKfwrite (INKFile filep, void *buf, int
length)
is the file
to write to.filep
is the buffer
that contains the data to be written.buf
is the
amount of data to write to
length
.filep
Attempts to write
bytes of data to
the file pointed to by
length
from the buffer
filep
. If the file was not
opened for writing, then buf
INKfwrite
returns -1
.
Otherwise, INKfwrite
returns the number of
bytes written. Unless an error occurs when writing data to the
file, the number of bytes written is equal to
. One common error
is an insufficient amount of space on disk.length