ostrstream::ostrstream

ostrstream();

ostrstream( char* pch, int nLength, int nMode = ios::out );

Parameters

pch

A character array that is large enough to accommodate future output stream activity.

nLength

The size (in characters) of pch. If 0, then pch is assumed to point to a null-terminated array and strlen( pch ) is used as the length; if less than 0, the array is assumed to have infinite length.

nMode

The stream-creation mode, which must be one of the following enumerators as defined in class ios:

Remarks

The first constructor makes an ostrstream object that uses an internal, dynamic buffer.

The second constructor makes an ostrstream object out of the first nLength characters of the pch buffer. The stream will not accept characters once the length reaches nLength.

ostrstream OverviewOutput Stream Classes