diff options
Diffstat (limited to 'libbb/xfuncs_printf.c')
-rw-r--r-- | libbb/xfuncs_printf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c index cd0f84dea..6d0fa6e8d 100644 --- a/libbb/xfuncs_printf.c +++ b/libbb/xfuncs_printf.c | |||
@@ -208,6 +208,10 @@ void FAST_FUNC xwrite(int fd, const void *buf, size_t count) | |||
208 | bb_error_msg_and_die("short write"); | 208 | bb_error_msg_and_die("short write"); |
209 | } | 209 | } |
210 | } | 210 | } |
211 | void FAST_FUNC xwrite_str(int fd, const char *str) | ||
212 | { | ||
213 | xwrite(fd, str, strlen(str)); | ||
214 | } | ||
211 | 215 | ||
212 | // Die with an error message if we can't lseek to the right spot. | 216 | // Die with an error message if we can't lseek to the right spot. |
213 | off_t FAST_FUNC xlseek(int fd, off_t offset, int whence) | 217 | off_t FAST_FUNC xlseek(int fd, off_t offset, int whence) |