aboutsummaryrefslogtreecommitdiffstats
path: root/util/iobuf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--util/iobuf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/util/iobuf.c b/util/iobuf.c
index 12fc74ff6..6c4a5f5da 100644
--- a/util/iobuf.c
+++ b/util/iobuf.c
@@ -627,6 +627,15 @@ iobuf_write(IOBUF a, byte *buf, unsigned buflen )
return 0;
}
+int
+iobuf_writestr(IOBUF a, const char *buf )
+{
+ for( ; *buf; buf++ )
+ if( iobuf_writebyte(a, *buf) )
+ return -1;
+ return 0;
+}
+
/****************