Mail Archives: djgpp/1998/10/26/12:47:27
Koen_Van_Herck AT xircom DOT com wrote:
>
> fails to properly terminate the string s. (output is "test
> first\ngarbagegarbage...test\ngarbage..." It seems the str() function does
> not append the '\0' terminator to the string correctly. Is this a bug, or
> am I doing something wrong ?
if you have iostream.inf installed, take a look at it. The short answer:
if
you want the string null terminated, you need to do it yourself. the
info file
suggests
os << ends;
- Raw text -