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::sputn
streambuf                                   Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  int sputn( const char* pch, int nCount );
 
  Parameter   Description
 
  <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.
 
  Return Value
 
  The number of characters stored. This number is usually <nCount> but
  could be less if an error occurs.
 
  See Also
 
  streambuf::sputc
 
 
                                     -♦-