basic_streambuf::xsputn

Write a number of characters to an output buffer.

virtual streamsize xsputn (const char_type *s,streamsize n);

Remarks

The function xsputn() writes to the output character by using repeated calls to sputc(c). Write stops when n characters have been written or EOF is encountered.

Returns the number of characters written in a type streamsize.