int sputc( int nCh );
nCh
The character to store in the streambuf object.
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.
The number of characters successfully stored; EOF on error.