osdFileWrite

osdFileWrite

osd

1998 12-05


NAME

osdFileWrite - write to a file


SYNOPSIS

long osdFileWrite(OSD_File *file, char *buffer,unsigned long len)

osdFileWrite() writes data from buffer to the file specified by file. Data is written starting from the current file pointer location (see osdFileSetPointer() ).


The memory area pointed to by buffer should be valid for the number of bytes specified by len.


After osdFileWrite() the file pointer location is incremented by the actual number of bytes written.


Returns the actual number of bytes written. This may be less than len if the file system becomes full of the write is interrupted.


ARGUMENTS


file the file to which to write
buffer a pointer to data to be written
len the number of bytes to write