[#BloombergLP-bdlsb-FixedMemOutput-sputn]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/FixedMemOutput.adoc[FixedMemOutput]::sputn
:relfileprefix: ../../../
:mrdocs:

Write the specified `length` characters at the specified address `s` to this buffer&period; Return the number of characters written, which is either `length` or the distance from the current write position to the end of the write buffer, whichever is smaller, and move the write cursor position by this amount&period;

== Synopsis

Declared in `&lt;bdlsb&lowbar;fixedmemoutput&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::streamsize
sputn(
    char const* s,
    std::streamsize length);
----


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