aboutsummaryrefslogtreecommitdiff
path: root/src/jtutil/util.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/jtutil/util.hh')
-rw-r--r--src/jtutil/util.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/jtutil/util.hh b/src/jtutil/util.hh
index df3daeb..d87330d 100644
--- a/src/jtutil/util.hh
+++ b/src/jtutil/util.hh
@@ -3,9 +3,22 @@
//
// prerequisites:
+// <stdlib.h> or <string.h> or <stdio.h> // size_t
// "stdc.h"
//
+//
+// misc string functions (in C, not C++)
+//
+#ifdef __cplusplus
+extern "C"
+#endif
+size_t AHFinderDirect_Strlcat(char* dst, const char* src, size_t dst_size);
+
+//
+// the rest of this file is C++ only
+//
+#ifdef __cplusplus
namespace jtutil
{
@@ -185,3 +198,4 @@ public:
//******************************************************************************
} // namespace jtutil
+#endif /* __cplusplus */