[#bsl-basic_string-0faf-c_str]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic&lowbar;string]::c&lowbar;str
:relfileprefix: ../../
:mrdocs:

Return a pointer to the null&hyphen;terminated character buffer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CHAR&lowbar;TYPE const*
c&lowbar;str() const noexcept;
----

== Description

Return an address providing non&hyphen;modifiable access to the null&hyphen;terminated buffer of `length() &plus; 1` characters whose contents are identical to the value of this string&period; Note that any call to the string destructor or any of its manipulators invalidates the returned pointer&period;

== Return Value

pointer to the null&hyphen;terminated character buffer


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