Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>strstreambuf::str</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
strstreambuf::str

Usage

   #include <sstream.hpp>
   char *strstream::str();

Description

   Freezes the streambuf and returns a pointer to the start of the memory
   area. If there is room in the current put area, a precautionary null byte
   is appended.

Example 

   char *foo()
   {

       strstreambuf d;

       d.sputn("Speed the plough");
       // dynamically allocated

       return d.str();
       // allocation not deleted when d destructor called
   }





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson