[#boost-urls-url_base-c_str] = xref:boost/urls/url_base/c_str.adoc[boost::urls::url_base::c_str] :relfileprefix: ../../../ :mrdocs: Return the url as a null‐terminated string == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_base.hpp#L128[boost/url/url_base.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- char const* c_str() const noexcept; ---- == Description This function returns a pointer to a null terminated string representing the url, which may contain percent escapes. == Example [,cpp] ---- assert( std::strlen( url( "http://www.example.com" ).c_str() ) == 22 ); ---- == Complexity Constant. == Exception Safety Throws nothing. == Return Value A pointer to a null‐terminated string containing the URL. [.small]#Created with https://www.mrdocs.com[MrDocs]#