libssh2_sftp_rewind(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_rewind(3) β€” a page from the libssh2 manual πŸ’–

okay bestie, sit down, hydrate, and let's talk about the tiniest lil glow-up function in the whole libssh2 lineup 🫢


✨ NAME ✨

libssh2_sftp_rewind β€” it's literally just a convenience macro that wraps libssh2_sftp_seek64(3) calls, no cap πŸŽ€


🌸 SYNOPSIS 🌸

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

int
libssh2_sftp_rewind(LIBSSH2_SFTP_HANDLE *handle);

look at her. one argument. one return. main character energy fr fr πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie: this one is not even a real function β€” it's a macro πŸ’€ and it lives in a public libssh2 header file, so it's just chilling in there waiting for you.

And what does that macro do? It's out here using the underlying function libssh2_sftp_seek64(3) underneath. That's it. That's the whole vibe. It's giving "convenience wrapper" and honestly? Iconic. ✨


πŸ‘‘ RETURN VALUE πŸ‘‘

okay so literally just go look at libssh2_sftp_seek64(3) β€” everything you need to know about what comes back is over there, iykyk πŸ’œ


😭 ERRORS 😭

same situation bestie β€” the errors are all documented in libssh2_sftp_seek64(3). Not me redirecting you twice but that's literally where the info lives πŸ™ˆ


🌈 SEE ALSO 🌈


heads up babes: since this is a macro, it's defined in a public libssh2 header file, so include your headers properly and let the preprocessor do her thing πŸ’–

and that's the whole page!! short and sweet, just like this function πŸ’… mwah πŸŽ€

signing off from the libssh2 1.2.4 era, dated 20 Feb 2010 β€” yeah she's vintage but she still slays πŸ‘‘βœ¨ bye bestie, go rewind something πŸ’œ