[#BloombergLP-bdlb-String-rtrim-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/String.adoc[String]::rtrim
:relfileprefix: ../../../
:mrdocs:

Determine the number of characters that the specified `string` having the specified `length` would have if all trailing whitespace characters were removed and load the result into `&ast;length`&period; `string` is _not_ modified&period; The behavior is undefined unless `0 &lt;&equals; &ast;length`&period; Note that `length` is both an input and output parameter&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;string&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
rtrim(
    char const* string,
    int* length);
----


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