[#BloombergLP-balber-BerUtil_StreambufUtil-putChars]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_StreambufUtil.adoc[BerUtil&lowbar;StreambufUtil]::putChars
:relfileprefix: ../../../
:mrdocs:

Write the first specified `bufferLength` number of bytes from the specified `buffer` to the specified `streamBuf`, as if by a call to &grave;streamBuf&hyphen;&gt;sputn(buffer&period;

== Synopsis

Declared in `&lt;balber&lowbar;berutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
putChars(
    std::streambuf* streamBuf,
    char const* buffer,
    int bufferLength);
----

== Description

bufferLength)&grave;&period; Return 0 on success, and a non&hyphen;zero value otherwise&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *streamBuf*
| output stream buffer
| *buffer*
| bytes to write
| *bufferLength*
| number of bytes to write
|===


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