Mail Archives: djgpp/1998/10/29/16:26:47
Koen_Van_Herck AT xircom DOT com wrote:
> The following code
...
> 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 ?
You need to terminate it yourself, with
os << ends;
--
Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900
Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com
San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/
USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE
\
/ The believer is happy; the doubter is wise.
/ (an Hungarian proverb)
- Raw text -