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

Write `numChars` copies of `value` to `streamBuf`&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 value,
    int numChars);
----

== Description

Return 0 if successful, and a non&hyphen;zero value otherwise&period; The operation succeeds if all `numChars` bytes are written to the `streamBuf` without the write position becoming unavailable&period;

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *streamBuf*
| output stream buffer
| *value*
| value to encode
| *numChars*
| number of characters to write
|===


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