This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in strstream ?
- To: Sven Eschenberg <eschenb at cs dot uni-frankfurt dot de>
- Subject: Re: Bug in strstream ?
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 11 Apr 2001 01:10:29 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <11354348238.20010411031518@cs.uni-frankfurt.de>
On Apr 10, 2001, Sven Eschenberg <eschenb@cs.uni-frankfurt.de> wrote:
> istr=dummy.str();
> cout << dummy.str() << endl;
Note that the result of str() is not guaranteed to be NULL-terminated,
unless you explicitly write a std::eos to the stream.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me