[#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 `*length`. `string` is _not_ modified. The behavior is undefined unless `0 <= *length`. Note that `length` is both an input and output parameter. == Synopsis Declared in `<bdlb_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void rtrim( char const* string, int* length); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#