The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
streambuf::sputc
streambuf                                   Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  int sputc( int nCh );
 
  Parameter   Description
 
  <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.
 
  Return Value
 
  The number of characters successfully stored; EOF on error.
 
  See Also
 
  streambuf::sputn
 
 
                                     -♦-