Write numBytes from buffer to the file descriptor.
Declared in <bdls_fdstreambuf.h>
int
write(
char const* buffer,
int numBytes);
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.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| buffer | data to write |
| numBytes | number of bytes in buffer to write |