summaryrefslogtreecommitdiff
path: root/src/libstddjb/buffer_putsall.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-06-02 14:08:00 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-06-02 14:08:00 +0000
commiteffe4db8a69d475ae77bb7bf85bf53c009445d0e (patch)
treef5b499449afe0a37f96cf7f614199766d1ebef50 /src/libstddjb/buffer_putsall.c
parentf476227930793f94e6ca9bd268b76bbf5c4f29c3 (diff)
downloadskalibs-effe4db8a69d475ae77bb7bf85bf53c009445d0e.tar.xz
Turn non-linear buffer macros calling str_len() into functions. >.>
Diffstat (limited to 'src/libstddjb/buffer_putsall.c')
-rw-r--r--src/libstddjb/buffer_putsall.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstddjb/buffer_putsall.c b/src/libstddjb/buffer_putsall.c
new file mode 100644
index 0000000..dbd306c
--- /dev/null
+++ b/src/libstddjb/buffer_putsall.c
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#include <skalibs/bytestr.h>
+#include <skalibs/buffer.h>
+
+int buffer_putsall (buffer *b, char const *s, unsigned int *w)
+{
+ return buffer_putall(b, s, str_len(s), w) ;
+}