Write numBytes from buffer to the file descriptor.
Synopsis
Declared in <bdls_fdstreambuf.h>
int
write(
char const* buffer,
int numBytes);
Description
Write the specified buffer, containing the specified numBytes, to the file descriptor starting at the current position. Return 0 on success, and a non‐zero value otherwise. The behavior is undefined unless 0 <= numBytes. Note that on Windows in text mode, a ` ` is written as `\r ` and counts as one character.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
buffer |
data to write |
numBytes |
number of bytes in |
Created with MrDocs