|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
#include <unistd.h> off_t lseek(int fd, off_t offset, int whence);
This function moves the file pointer for handle fd according to whence:
The file pointer is moved to the offset specified.
The file pointer is moved offset bytes relative to its current position.
The file pointer is moved to a position offset bytes from the end of the file. The value of offset is usually nonpositive in this case.
The new offset is returned, or -1 and
errno set on failure.
lseek(fd, 12, SEEK_CUR); /* skip 12 bytes */
|webmaster||delorie software privacy|
|Copyright © 2004||Updated Apr 2004|