aboutsummaryrefslogtreecommitdiff
path: root/lib/errmsg_puts.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/errmsg_puts.c')
-rw-r--r--lib/errmsg_puts.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/errmsg_puts.c b/lib/errmsg_puts.c
new file mode 100644
index 0000000..41c3b88
--- /dev/null
+++ b/lib/errmsg_puts.c
@@ -0,0 +1,5 @@
+#include "../ninitfeatures.h"
+void errmsg_puts(int fd, const char *buf) /*EXTRACT_INCL*/ {
+ if (buf==0) { errmsg_put(fd, buf, 0); return; }
+ if (buf[0]) errmsg_put(fd, buf, str_len(buf));
+}