libssh2_sftp_seek.3 (925B)
1.TH libssh2_sftp_seek 3 "22 Dec 2008" "libssh2 1.0" "libssh2" 2.SH NAME 3libssh2_sftp_seek - set the read/write position indicator within a file 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7#include <libssh2_sftp.h> 8 9void 10libssh2_sftp_seek(LIBSSH2_SFTP_HANDLE *handle, 11 size_t offset); 12.fi 13.SH DESCRIPTION 14Deprecated function. Use \fIlibssh2_sftp_seek64(3)\fP instead! 15 16\fIhandle\fP - SFTP File Handle as returned by 17.BR libssh2_sftp_open_ex(3) 18 19\fIoffset\fP - Number of bytes from the beginning of file to seek to. 20 21Move the file handle's internal pointer to an arbitrary location. 22Note that libssh2 implements file pointers as a localized concept to make 23file access appear more POSIX like. No packets are exchanged with the server 24during a seek operation. The localized file pointer is used as a convenience 25offset during read/write operations. 26.SH SEE ALSO 27.BR libssh2_sftp_open_ex(3), 28.BR libssh2_sftp_seek64(3)