[#bsl-basic_stringbuf-xsputn-03] = xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic_stringbuf]::xsputn :relfileprefix: ../../ :mrdocs: Append characters to the output sequence. == Synopsis Declared in `<bslstl_stringbuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::streamsize xsputn( xref:bsl/basic_stringbuf/char_type.adoc[char_type] const* inputString, std::streamsize numCharacters); ---- == Description Append the specified `numCharacters` from the specified `inputString` to the output sequence starting at the current output position (`pptr`). Update the current output position of this string buffer to refer to the last appended character. Return the number of characters that were appended. The behavior is undefined unless `inputString` refers to a contiguous sequence of at least `numCharacters` characters. [.small]#Created with https://www.mrdocs.com[MrDocs]#