libssh2_sftp_tell(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

✨ NAME ✨

okay so bestie, this is the page for libssh2_sftp_tell(3) from the libssh2 manual β€” it gets the current read/write position indicator for a file. That's the whole assignment. πŸŽ€

πŸ“š SYNOPSIS πŸ“š

#include <libssh2.h>
#include <libssh2_sftp.h>

size_t
libssh2_sftp_tell(LIBSSH2_SFTP_HANDLE *handle);

πŸ’– DESCRIPTION πŸ’–

  • handle β€” SFTP File Handle as returned by libssh2_sftp_open_ex(3). It's giving your file's little backstage pass, fr. 🎟️

Returns the current offset of the file handle's internal pointer. That's where the read/write vibe is currently parked. ✨

⚠️ Deprecation alert: this is now deprecated. Use the newer libssh2_sftp_tell64(3) instead! No cap, go upgrade your code bestie. πŸ’…

🌟 RETURN VALUE 🌟

Current offset from beginning of file in bytes. Literally the byte-distance from the start, periodt. πŸ“

πŸ‘€ SEE ALSO πŸ‘€


and that's the tea, bestie! This gem is from libssh2 0.15, dated 1 Jun 2007 β€” iconic old-school energy, love that for us. bye, go read/write slay πŸ’–πŸ¦‹