istrstream::istrstream

istrstream( char* psz );

istrstream( char* pch, int nLength );

Parameters

psz

A null-terminated character array (string).

pch

A character array that is not necessarily null terminated.

nLength

Size (in characters) of pch. If 0, then pch is assumed to point to a null-terminated array; if less than 0, then the array length is assumed to be unlimited.

Remarks

The first constructor uses the specified psz buffer to make an istrstream object with length corresponding to the string length.

The second constructor makes an istrstream object out of the first nLength characters of the pch buffer.

Both constructors automatically construct a strstreambuf object that manages the specified character buffer.

istrstream OverviewInput Stream Classes