[#bsl-basic_syncbuf-xsputn-0d] = xref:bsl.adoc[bsl]::xref:bsl/basic_syncbuf.adoc[basic_syncbuf]::xsputn :relfileprefix: ../../ :mrdocs: Multiple character insertion. == Synopsis Declared in `<bslstl_syncbuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual streamsize xsputn( char_type const* __s, streamsize __n); ---- == Description Writes ___s[0]_ through ___s[]_ to the output sequence, as if by `sputc().` Stops when either _n_ characters have been copied, or when `sputc()` would return `traits::eof().` It is expected that derived classes provide a more efficient implementation by overriding this definition. == Return Value The number of characters written. == Parameters [cols="1,4"] |=== | Name| Description | *__s* | A buffer area. | *__n* | Maximum number of characters to write. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#