std::basic_streambuf::sputn, std::basic_streambuf::xsputn

From Cppreference

Jump to: navigation, search
std::streamsize sputn( const char_type* s, std::streamsize count );
(1)
protected:
virtual std::streamsize xsputn( const char_type* s, std::streamsize count );
(2)

1) Calls xsputn(s, count) of the most derived class.

2) Writes count characters from the character array pointed to by s to the output sequence. The characters are written as if by repeated calls to sputc(). Writing stops when either count characters are written or a call to sputc() would have returned traits::eof().

Contents

[edit] Parameters

(none)

[edit] Return value

The number of characters successfully written.

[edit] Example

[edit] See also

invokes xsgetn()
(public member function)