内容简介
#include <sys/types.h>#include <unistd.h>
off_t lseek(int fildes, off_t offset, int whence);
描述
The lseek() function repositions the offset of the open file associated with the file descriptor fildes to the argument offset according to the directive whence as follows:标签 | 描述 |
---|---|
SEEK_SET | |
The offset is set to offset bytes. | |
SEEK_CUR | |
The offset is set to its current location plus offset bytes. | |
SEEK_END | |
The offset is set to the size of the file plus offset bytes. |