Load into result the target of the symbolic link at path.

Synopses

Declared in <bdls_filesystemutil.h>

Load into result the target of the symbolic link at path.

static
int
getSymbolicLinkTarget(
    bsl::string* result,
    char const* path);

Load into result the target of the symbolic link at path.

static
int
getSymbolicLinkTarget(
    std::pmr::string* result,
    char const* path);

Load into result the target of the symbolic link at path.

static
int
getSymbolicLinkTarget(
    std::string* result,
    char const* path);

Load into result the target of the symbolic link at path.

template<class STRING_TYPE>
static
int
getSymbolicLinkTarget(
    bsl::string* result,
    STRING_TYPE const& path);

Load into result the target of the symbolic link at path.

template<class STRING_TYPE>
static
int
getSymbolicLinkTarget(
    std::pmr::string* result,
    STRING_TYPE const& path);

Load into result the target of the symbolic link at path.

template<class STRING_TYPE>
static
int
getSymbolicLinkTarget(
    std::string* result,
    STRING_TYPE const& path);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

result

receives the symbolic‐link target

path

filesystem path of the symbolic link

Created with MrDocs