summaryrefslogtreecommitdiffstats
path: root/stringbuf.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-25 15:23:57 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-25 15:23:57 +0000
commit50ddd3fd7de672a2fa2df67adb27401cc38ce38c (patch)
treee509dc31fce2c6edb230147ee547b3967bc636c2 /stringbuf.c
parentc9fc3fc06d2566aa6aed977af66392dce97d1264 (diff)
downloadrsyslog-50ddd3fd7de672a2fa2df67adb27401cc38ce38c.tar.gz
rsyslog-50ddd3fd7de672a2fa2df67adb27401cc38ce38c.tar.xz
rsyslog-50ddd3fd7de672a2fa2df67adb27401cc38ce38c.zip
added string concatenation operator & to RainerScript
Diffstat (limited to 'stringbuf.c')
-rwxr-xr-xstringbuf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/stringbuf.c b/stringbuf.c
index 80f1bb97..ecd70113 100755
--- a/stringbuf.c
+++ b/stringbuf.c
@@ -236,6 +236,15 @@ rsRetVal rsCStrAppendStr(cstr_t *pThis, uchar* psz)
}
+/* append the contents of one cstr_t object to another
+ * rgerhards, 2008-02-25
+ */
+rsRetVal rsCStrAppendCStr(cstr_t *pThis, cstr_t *pstrAppend)
+{
+ return rsCStrAppendStrWithLen(pThis, pstrAppend->pBuf, pstrAppend->iStrLen);
+}
+
+
rsRetVal rsCStrAppendInt(cstr_t *pThis, long i)
{
DEFiRet;