[#bsl-basic_stringbuf-sputn-0f]
= xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic&lowbar;stringbuf]::sputn
:relfileprefix: ../../
:mrdocs:

Entry point for all single&hyphen;character output functions&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
streamsize
sputn(
    char&lowbar;type const* &lowbar;&lowbar;s,
    streamsize &lowbar;&lowbar;n);
----

== Description

One of two public output functions&period;

Returns xsputn(&lowbar;&lowbar;s,&lowbar;&lowbar;n)&period; The effect is to write _&lowbar;&lowbar;s&lsqb;0&rsqb;_ through _&lowbar;&lowbar;s&lsqb;&rsqb;_ to the output sequence, if possible&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;s*
| A buffer read area&period;
| *&lowbar;&lowbar;n*
| A count&period;
|===


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