streambuf::sputc

int sputc( int nCh );

Return Value

The number of characters successfully stored; EOF on error.

Parameter

nCh

The character to store in the streambuf object.

Remarks

Stores a character in the put area and advances the put pointer.

This public function is available to code outside the class, including the classes derived from ios. A derived streambuf class can gain access to its buffer directly by using protected member functions.

streambuf OverviewStream Buffer Classes

See Also   streambuf::sputn