streambuf::sputn

int sputn( const char* pch, int nCount );

Return Value

The number of characters stored. This number is usually nCount but could be less if an error occurs.

Parameters

pch

A pointer to a buffer that contains data to be copied to the streambuf object.

nCount

The number of characters in the buffer.

Remarks

Copies nCount characters from pch to the streambuf buffer following the put pointer. The function repositions the put pointer to follow the stored characters.

streambuf OverviewStream Buffer Classes

See Also   streambuf::sputc