diff options
Diffstat (limited to 'text.h')
| -rw-r--r-- | text.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -413,6 +413,12 @@ ssize_t text_write_range(const Text*, const Filerange*, int fd); * this text instance. */ bool text_mmaped(const Text*, const char *ptr); + +/** + * Write complete buffer to file descriptor. + * @return The number of bytes written or ``-1`` in case of an error. + */ +ssize_t write_all(int fd, const char *buf, size_t count); /** @} */ #endif |
