Update file descriptor offset
The fd_seek()
function updates the offset of a file descriptor. It allows you to adjust the offset by a specified number of bytes relative to a given position.
Whence | Value | Description |
---|---|---|
SEEK_SET | 0 | Sets the offset to an absolute value |
SEEK_CUR | 1 | Adjusts the offset relative to the current position |
SEEK_END | 2 | Adjusts the offset relative to the end of the file |