Calling c_str of empty string
<p>Is this code fragment OK or does it result in undefined behavior? </p>

<pre><code>std::string s;
assert(strlen(s.c_str())==0);
</code></pre>

<p>If it isn't undefined behavior, will the above assertion pass?</p>
