<div class="gmail_quote">On Tue, May 4, 2010 at 12:09 AM, Brian Paul <span dir="ltr">&lt;<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
My guess is that the code GCC actually generates for both versions (the<br>
original and the memcpy version) is pretty close to identical.  At -O0,<br>
the memcpy version should be smaller / faster / have better stickers.<br>
<br>
In this particular case, why aren&#39;t we just using the system strdup?<br>
Are there really still platforms that don&#39;t include it?<br>
</blockquote>
<br></div>
IIRC, Windows.<br></blockquote><div><br>I think MSVC has had _strdup (with the underscore) since VC++ 6.0.<br><br>-Marek<br></div></div>