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

`xsputn` overloads

== Synopses

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

Multiple character insertion&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
streamsize
xref:bsl/basic_stringbuf/xsputn-0e.adoc[xsputn](
    char&lowbar;type const* &lowbar;&lowbar;s,
    streamsize &lowbar;&lowbar;n);
----

[.small]#xref:bsl/basic_stringbuf/xsputn-0e.adoc[_» more&period;&period;&period;_]#

Append characters to the output sequence&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::streamsize
xref:bsl/basic_stringbuf/xsputn-03.adoc[xsputn](
    xref:bsl/basic_stringbuf/char_type.adoc[char&lowbar;type] const* inputString,
    std::streamsize numCharacters);
----

[.small]#xref:bsl/basic_stringbuf/xsputn-03.adoc[_» more&period;&period;&period;_]#

== Return Value

* The number of characters written&period;
* number of characters that were appended

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;s*
| A buffer area&period;
| *&lowbar;&lowbar;n*
| Maximum number of characters to write&period;
| *inputString*
| characters to append to the output sequence
| *numCharacters*
| number of characters to append
|===


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