[#BloombergLP-bdls-PathUtil-getRootEnd]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/PathUtil.adoc[PathUtil]::getRootEnd
:relfileprefix: ../../../
:mrdocs:

Return the position in a path of the character following the root&period;

== Synopsis

Declared in `&lt;bdls&lowbar;pathutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
getRootEnd(std::string&lowbar;view const& path);
----

== Description

Return the 0&hyphen;based position in the specified `path` of the character following the root&period; Note that a return value of 0 indicates a relative path&period; See &lsqb;&rsqb;and Performance)&period; See also  for the definition of root&period;

== Return Value

0&hyphen;based index of the character following the root

== Parameters

[cols="1,4"]
|===
| Name| Description
| *path*
| filesystem path to examine
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
