summaryrefslogtreecommitdiffstats
path: root/runtime/unicode-helper.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-04 15:59:37 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-04 15:59:37 +0200
commit76da7f9f4e3dc900046a1956153d10532f2b1ae0 (patch)
treef8d6c17b4d968a63fd07e7500ba020cdce37cd8a /runtime/unicode-helper.h
parentf2800ba261d2fb7466cbdebbf80afe92f0bffd3d (diff)
downloadrsyslog-76da7f9f4e3dc900046a1956153d10532f2b1ae0.tar.gz
rsyslog-76da7f9f4e3dc900046a1956153d10532f2b1ae0.tar.xz
rsyslog-76da7f9f4e3dc900046a1956153d10532f2b1ae0.zip
added $OMFileIOBufferSize config directive and plumbing
Diffstat (limited to 'runtime/unicode-helper.h')
-rw-r--r--runtime/unicode-helper.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/unicode-helper.h b/runtime/unicode-helper.h
index fe4cc1f8..5289da3f 100644
--- a/runtime/unicode-helper.h
+++ b/runtime/unicode-helper.h
@@ -31,6 +31,11 @@
#include <string.h>
+static inline char* ustrncpy(uchar *psz1, uchar *psz2, size_t len)
+{
+ return strncpy((char*) psz1, (char*) psz2, len);
+}
+
static inline int ustrcmp(uchar *psz1, uchar *psz2)
{
return strcmp((char*) psz1, (char*) psz2);