[#bsl-basic_syncbuf-xsputn-00]
= xref:bsl.adoc[bsl]::xref:bsl/basic_syncbuf.adoc[basic&lowbar;syncbuf]::xsputn
:relfileprefix: ../../
:mrdocs:

`xsputn` overloads

== Synopses

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

Multiple character insertion&period;


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

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

Write the specified `inputString` array of the specified `count` characters to the internal buffer&period; Return the number of characters successfully written&period;


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

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

== Return Value

The number of characters written&period;

== Parameters

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


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