Re: Convert string to char
From: AirPete (x_at_x.x)
Date: Tue, 03 Feb 2004 13:50:12 GMT
> > char* cstr = new char[str.length()];
> I'd add 1 just to make a bit room for the \0 termination...
Oops, you're right! It's rather early in the morning for me ;)
Thanks for pointing it out.