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>strstream::setbuf</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
strstream::setbuf

Usage

   #include <sstream.hpp>
   streambuf *setbuf(char *memory, int length);

Description

   The memory argument is ignored. The length argument is used by

   dynamically allocating strstreambufs as the size for the next allocation.

Example 

   strstreambuf d;

   d.setbuf(0,1024);
   for (int i = 1024; i--;)
       d.sputc(' ');   // only one allocation

Return Value

   Always returns a pointer to the object for which it was called.




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