[#BloombergLP-bdls-PathUtil-appendIfValid-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/PathUtil.adoc[PathUtil]::appendIfValid :relfileprefix: ../../../ :mrdocs: Append a relative filename to the end of a path. == Synopses Declared in `<bdls_pathutil.h>` Append a relative filename to the end of a path. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/PathUtil/appendIfValid-01.adoc[appendIfValid]( xref:bsl/string.adoc[bsl::string]* path, std::string_view const& filename); ---- [.small]#xref:BloombergLP/bdls/PathUtil/appendIfValid-01.adoc[_» more..._]# Append a relative filename to the end of a path. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/PathUtil/appendIfValid-03.adoc[appendIfValid]( std::pmr::string* path, std::string_view const& filename); ---- [.small]#xref:BloombergLP/bdls/PathUtil/appendIfValid-03.adoc[_» more..._]# Append a relative filename to the end of a path. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/PathUtil/appendIfValid-05.adoc[appendIfValid]( std::string* path, std::string_view const& filename); ---- [.small]#xref:BloombergLP/bdls/PathUtil/appendIfValid-05.adoc[_» more..._]# == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *path* | path to which `filename` is appended | *filename* | relative path component to append |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#