libssh2_sftp_tell64(3)
β¨ libssh2_sftp_tell64 β¨
okay bestie, welcome to the libssh2 manual π this one is short, sweet, and lowkey iconic. it's all about finding out where you're at inside a file. literally. no cap.
π NAME π
libssh2_sftp_tell64</p> β get the current read/write position indicator for a file
πΈ SYNOPSIS πΈ
#include <libssh2.h>
#include <libssh2_sftp.h>
libssh2_uint64_t
libssh2_sftp_tell64(LIBSSH2_SFTP_HANDLE *handle);
π¦ DESCRIPTION π¦
so here's the vibe:
handleβ this is your SFTP File Handle, bestie. it's the one you got back fromlibssh2_sftp_open_ex(3). don't lose it, okay? π«Ά
and what does this function do? it identifies the current offset of the file handle's internal pointer. that's it. that's the whole thing. it's giving "where am I right now in this file" energy and honestly? we love that for us. π
β RETURN VALUE β
the current offset from the beginning of the file, in bytes. periodt. π
π AVAILABILITY π
added in libssh2 1.0 β¨ so it's been here for a minute, and it's not going anywhere.
π SEE ALSO π
and that's the page, bestie π this was libssh2 1.0, dated 22 Dec 2008, and yes the title is still libssh2_sftp_tell64(3) because we keep it cute and consistent π mwah, go read your file offsets and slay π
β¨
π¦ where this page comes from
- alpine 3.22: libssh2-doc 1.11.1-r3 Β· BSD-3-Clause
- alpine 3.23: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- alpine 3.24: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- arch rolling: libssh2 1.11.1-7 Β· BSD-3-Clause
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u1 Β· BSD3
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u2 Β· BSD3
- epel 10: libssh2-docs 1.11.1-9.el10_3 Β· BSD-3-Clause
- epel 9: libssh2-docs 1.11.1-9.el9 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-4.fc43 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-9.fc43 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-5.fc44 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-9.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libssh2-1-dev 1.11.1-1build1
- ubuntu questing: libssh2-1-dev 1.11.1-1ubuntu0.25.10.2
- ubuntu resolute: libssh2-1-dev 1.11.1-1build2 Β· BSD3
- ubuntu resolute: libssh2-1-dev 1.11.1-1ubuntu0.26.04.4 Β· BSD3
- ubuntu stonking: libssh2-1-dev 1.11.1-6 Β· BSD3
- π the page's license: BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms