libssh2_sftp_tell64(3)

πŸ“¦
version 1.11.1 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 from libssh2_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 πŸ’…βœ¨