Using std::string_view with api, what expects null terminated string : <p>I have a method that takes <code>std::string_view</code> and uses function, which takes null terminated string as parameter. For example:</p>

<pre><code>void stringFunc(std::experimental::string_view str) {
    some_c_library_func(/* Expects null terminated string */);
}
</code></pre>

<p>The question is, what is the proper way to handle this situation? Is <code>str.to_string().c_str()</code> the only option? And I really want to use <code>std::string_view</code> in this method, because I pass different types of strings in it.</p>
