[#bsl-basic_stringbuf-xsputn-03]
= xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic&lowbar;stringbuf]::xsputn
:relfileprefix: ../../
:mrdocs:

Append characters to the output sequence&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stringbuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::streamsize
xsputn(
    xref:bsl/basic_stringbuf/char_type.adoc[char&lowbar;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`)&period; Update the current output position of this string buffer to refer to the last appended character&period; Return the number of characters that were appended&period; The behavior is undefined unless `inputString` refers to a contiguous sequence of at least `numCharacters` characters&period;

== Return Value

number of characters that were appended

== Parameters

[cols="1,4"]
|===
| Name| Description
| *inputString*
| characters to append to the output sequence
| *numCharacters*
| number of characters to append
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
