summaryrefslogtreecommitdiff
path: root/src/libstddjb/genwrite_put_bufalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/genwrite_put_bufalloc.c')
-rw-r--r--src/libstddjb/genwrite_put_bufalloc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstddjb/genwrite_put_bufalloc.c b/src/libstddjb/genwrite_put_bufalloc.c
new file mode 100644
index 0000000..6aabe1c
--- /dev/null
+++ b/src/libstddjb/genwrite_put_bufalloc.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/bufalloc.h>
+#include <skalibs/genwrite.h>
+
+int genwrite_put_bufalloc (void *target, char const *s, unsigned int len)
+{
+ register bufalloc *ba = target ;
+ return bufalloc_put(ba, s, len) ? (int)len : -1 ;
+}