Standard C++ Library Reference ISO/IEC (VERSION3)
Next
<strstream>
Include the iostreams standard header <strstream> to define several classes that support
iostreams operations on sequences stored in an allocated array of char object. Such sequences
are easily converted to and from C strings.
namespace std {
class strstreambuf;
class istrstream;
class ostrstream;
class strstream;
 };
strstreambuf
class strstreambuf : public streambuf {
public:
 explicit strstreambuf(streamsize count = 0);
 strstreambuf(void (*allocfunc)(size_t),
 void (*freefunc)(void *));
 strstreambuf(char *getptr, streamsize count,
 char *putptr = 0);
 strstreambuf(signed char *getptr, streamsize count,
 signed char *putptr = 0);
 strstreambuf(unsigned char *getptr, streamsize count,
 unsigned char *putptr = 0);
 strstreambuf(const char *getptr, streamsize count);
 strstreambuf(const signed char *getptr, streamsize count);
 strstreambuf(const unsigned char *getptr, streamsize count);
 void freeze(bool freezeit = true);
 char *str();
 streamsize pcount();
protected:
 virtual streampos seekoff(streamoff off,
 ios_base::seekdir way,
 ios_base::openmode which =
 ios_base::in | ios_base::out);
 virtual streampos seekpos(streampos sp,










