1libssh2_sftp_seek(3)            libssh2 manual            libssh2_sftp_seek(3)
2
3
4

NAME

6       libssh2_sftp_seek - set the read/write position indicator within a file
7

SYNOPSIS

9       #include <libssh2.h> #include <libssh2_sftp.h>
10
11       void libssh2_sftp_seek(LIBSSH2_SFTP_HANDLE *handle, size_t offset);
12
13       void  libssh2_sftp_seek64(LIBSSH2_SFTP_HANDLE *handle, libssh2_uint64_t
14       offset);
15
16

DESCRIPTION

18       handle - SFTP File Handle as returned by libssh2_sftp_open_ex(3)
19
20       offset - Number of bytes from the beginning of file to seek to.
21
22       Move the file handle's internal pointer to an arbitrary location.  Note
23       that  libssh2  implements  file pointers as a localized concept to make
24       file access appear more POSIX like. No packets are exchanged  with  the
25       server  during  a  seek operation. The localized file pointer is simply
26       used as a convenience offset during read/write operations.
27

AVAILABILITY

29       libssh2_sftp_seek64(3) was added in 1.0
30

SEE ALSO

32       libssh2_sftp_open_ex(3)
33
34
35
36libssh2 1.0                       22 Dec 2008             libssh2_sftp_seek(3)
Impressum