This is the mail archive of the
mailing list for the libstdc++ project.
Re: [v3] Fix stringbuf handling of NUL characters
On Fri, Jul 13, 2001 at 04:24:23PM -0400, Phil Edwards wrote:
> But that's not c_str()'s fault. Both c_str() and data() simply return a
> pointer to the character string. A second NUL character (which will never
> be seen) won't make any difference.
> It's just occurred to me that we may be talking about different things
> anyhow. :-)
It irrelevant for the patch anyway, you should use data() if only because
it is faster.
Carlo Wood <firstname.lastname@example.org>