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

Usage

   #include <sstream.hpp>
   strstream::strstream();
   strstream::strstream(char *memory, int length, int mode =
   ios::in | ios::out);

Description

   The first constructor creates a dynamically allocating ostrstream. The
   second uses an arbitrary area of memory of specified length. If the mode
   argument has either or both of ios::ate or ios::app set, the memory
   specified is assumed to start with a null terminated string, and storage
   of put characters starts at the null character.

Example 

   char buffer[80];
   strcpy(buffer,"a string");
   strstream ss1;  // dynamic
   strstream ss2(buffer, 80, ios::app);





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