Fseek manual page
LSEEK(2) Linux Programmer's Manual LSEEK(2) NAME top lseek - reposition read/write file offset SYNOPSIS top #include off_t lseek(int fd, off_t offset, int whence); DESCRIPTION top lseek() repositions the file offset of the open file description associated with the file descriptor fd to the argument offset according to the directive whence as follows: . FSEEK(3) Linux Programmer's Manual FSEEK(3) NAME top fgetpos, fseek, fsetpos, ftell, rewind - reposition a stream. fseek (3) [linux man page] The fseek () function sets the file position indicator for the stream pointed to by stream. The new position, measured in bytes, is obtained by adding offset bytes to the position specified by whence. If whence is set to SEEK_SET, SEEK_CUR, or SEEK_END, the offset is relative to the start of the file, the current.
DESCRIPTION. The fseek () function sets the file position indicator for the stream pointed to by stream. The new position, measured in bytes, is obtained by adding offset bytes to the position specified by whence. If whence is set to SEEK_SET, SEEK_CUR, or SEEK_END, the offset is relative to the start of the file, the current position indicator. Description. The fseek () function sets the file position indicator for the stream pointed to by stream. The new position, measured in bytes, is obtained by adding offset bytes to the position specified by whence. If whence is set to SEEK_SET, SEEK_CUR, or SEEK_END, the offset is relative to the start of the file, the current position. FSEEK(3P) POSIX Programmer's Manual FSEEK(3P) PROLOG top This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
You can look up the manual page of fseek() to see more details. int fseek(FILE *stream, long offset, int whence);. The fseek() function sets the file position. Feb Why POSIX let to seek like in example in file opened for read only? c++: www.doorway.ru posix: www.doorway.ru SEEK_SET L_INCR SEEK_CUR L_XTND SEEK_END SVR returns long instead of off_t, BSD returns int. SEE ALSO dup(2), open(2), fseek(3) Linux Janu 1.
0コメント