<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 23, 2013 at 8:36 PM, Richard <span dir="ltr"><<a href="mailto:legalize@xmission.com" target="_blank">legalize@xmission.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
In article <CACs=<a href="mailto:ty%2B7zKZU6Ad4jZ5J5Rb0qoMa-bNtO0f%2BxK_8SYfy3RyFbg@mail.gmail.com">ty+7zKZU6Ad4jZ5J5Rb0qoMa-bNtO0f+xK_8SYfy3RyFbg@mail.gmail.com</a>>,<br>
<div class="im">    Reid Kleckner <<a href="mailto:rnk@google.com">rnk@google.com</a>> writes:<br>
<br>
> Is there a problem if the string is not null terminated?  If not, you can<br>
> snprintf it right into place instead of doing sprintf+mempcy.<br>
<br>
</div>Am I the only one who scratches my head and says:<br>
<br>
        sprintf?<br>
        memcpy?<br>
<br>
Why are we using error-prone C APIs in C++ code?</blockquote><div> </div><div>I've just kept the style of the previous implementation. I'd love to use std::to_string(), but it is just not available. Moreover, you still have to move this 8 bytes of text somehow.</div>

</div><br></div></div>