Skip to main content

File Seek Whence

note

These definitions are used by fseek.

DefinitionDescription
seek_startSet the file position relative to the start of the file (the position parameter must be positive).
seek_currentSet the file position relative to the current file position: the position parameter is added to the current position.
seek_endSet the file position relative to the end of the file (parameter position must be zero or negative).