Hi,
std::string has a constructor that you can pass a char* and size to.
string ( const char * s, size_t n );
This ignores \0's.
You can then << it into a stringstream or possibly even directly put it
into stringstream.str()
HTH
jp
On 14/06/11 16:35, Daniel Cámpora wrote:
Hello community,
Apparently, the problem is related to the formation of the strings I'm trying
to pass to the istringstream. Since they contain the \0 character, they finish
earlier than expected.
Has anybody found any workaround for this?
Thank you!
Cheers,
Daniel
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=40466#40466
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org