libssh2\_sftp\_realpath(3) libssh2 libssh2\_sftp\_realpath(3)

# [NAME](#NAME)

libssh2\_sftp\_realpath - convenience macro for [*libssh2\_sftp\_symlink\_ex(3)*](/man/os/libssh2/libssh2_sftp_symlink_ex.3)

# [SYNOPSIS](#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)
```

# [DESCRIPTION](#DESCRIPTION)

This is a macro defined in a public libssh2 header file that is using the underlying function [*libssh2\_sftp\_symlink\_ex(3)*](/man/os/libssh2/libssh2_sftp_symlink_ex.3).

# [RETURN VALUE](#RETURN_VALUE)

See [*libssh2\_sftp\_symlink\_ex(3)*](/man/os/libssh2/libssh2_sftp_symlink_ex.3)

# [ERRORS](#ERRORS)

See [*libssh2\_sftp\_symlink\_ex(3)*](/man/os/libssh2/libssh2_sftp_symlink_ex.3)

# [SEE ALSO](#SEE_ALSO)

[**libssh2\_sftp\_symlink\_ex(3)**](/man/os/libssh2/libssh2_sftp_symlink_ex.3)

20 Feb 2010 libssh2 1.2.4

---

Document: libssh2_sftp_realpath(3) from libssh2 1.11.1-r10 (Chainguard OS)
Source: https://github.com/libssh2/libssh2.git
