X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/f47cdeec5fbda82dc74d506f24e069558ee51a2c..680d2a652d5185d75c206444e9e8db9b82b3121c:/src/general.c?ds=inline diff --git a/src/general.c b/src/general.c index 9db4bb4..efad813 100644 --- a/src/general.c +++ b/src/general.c @@ -123,6 +123,12 @@ int adns__vbuf_append(vbuf *vb, const byte *data, int len) { return 1; } +int adns__vbuf_appendstr(vbuf *vb, const char *data) { + int l; + l= strlen(data); + return adns__vbuf_append(vb,data,l); +} + void adns__vbuf_free(vbuf *vb) { free(vb->buf); adns__vbuf_init(vb);