libssh2_sftp_realpath(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_realpath ✨

okay bestie, welcome to the libssh2 manual, section 3 πŸ’… this one's a lil baby page β€” a convenience macro β€” but we're gonna give it the full main character treatment anyway, because every page deserves love 🫢


🌸 NAME 🌸

libssh2_sftp_realpath β€” it's a convenience macro, and it's lowkey just a lil glow-up wrapper for libssh2_sftp_symlink_ex(3) ✨


πŸŽ€ SYNOPSIS πŸŽ€

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

#define libssh2_sftp_realpath(sftp, path, target, maxlen) \
    libssh2_sftp_symlink_ex((sftp), (path), strlen(path), \
                            (target), (maxlen), \
                            LIBSSH2_SFTP_REALPATH)

like… that's the whole thing. she's short, she's sweet, she's a #define. iconic πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• β€” this is a macro, right, and it lives in a public libssh2 header file, so you don't have to go digging through the source to find her. under all the sparkle, she's calling the real one: the underlying function libssh2_sftp_symlink_ex(3) 🌈

basically she's the friend who says "omg don't worry, I'll text them for you" and then sends the exact same message you would've sent. same energy. no cap. πŸ’…


πŸ‘‘ RETURN VALUE πŸ‘‘

go check libssh2_sftp_symlink_ex(3), bestie β€” she's not keeping secrets from you, the answer's literally right there πŸ“–βœ¨


πŸ’€ ERRORS πŸ’€

same deal, fr fr β€” see libssh2_sftp_symlink_ex(3) 😭


πŸ“ SEE ALSO πŸ“


and that's the page!! ty for reading, mwah 😘 this lil cutie came to you from libssh2 1.2.4, dated 20 Feb 2010 β€” yeah she's vintage, she's a classic, we stan an elder πŸŽ€βœ¨ slay, periodt πŸ’–