osdFileSetPointer

osdFileSetPointer

osd

1998 12-05


NAME

osdFileSetPointer - set the file pointer location


SYNOPSIS

long osdFileSetPointer(OSD_File *file, long offset, long start)

osdFileSetPointer() sets the file pointer location. The file pointer location is where reads and write start from. When setting the file pointer location with osdFileSetPointer(), the location is specified by offset and start. offset is a number of bytes from a reference location specified by start.


The values for start and their respective points of reference are as follows:



OSD_FILE_BEGIN the start of the file
OSD_FILE_CURRENT the current file pointer location
OSD_FILE_END the end of the file


Return reult position on success and -1 on failure.


ARGUMENTS


file the file to which to set the file pointer location
offset the offset from the point specified by start
start specifies the point of reference from which to set the file pointer location