[#BloombergLP-bdls-FdStreamBuf_FileHandler-write]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FdStreamBuf_FileHandler.adoc[FdStreamBuf&lowbar;FileHandler]::write
:relfileprefix: ../../../
:mrdocs:

Write the specified `buffer`, containing the specified `numBytes`, to the file descriptor starting at the current position&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; The behavior is undefined unless `0 &lt;&equals; numBytes`&period; Note that on Windows in text mode, a &grave; &grave; is written as &grave;&bsol;r &grave; and counts as one character&period;

== Synopsis

Declared in `&lt;bdls&lowbar;fdstreambuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
write(
    char const* buffer,
    int numBytes);
----


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