summaryrefslogtreecommitdiff
path: root/include/inspstring.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-25 19:25:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-25 19:25:41 +0000
commit9f1bd74b09810565502451047b06b6eca7e47f7f (patch)
treea82551e9129f988c83fb55a2d5357340ae30ee22 /include/inspstring.h
parentad75aac62374e74a9829dc2f43939f4f8148a0f4 (diff)
Added implementation of strlcpy and strlcat for systems that dont have it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@905 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspstring.h')
-rw-r--r--include/inspstring.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/inspstring.h b/include/inspstring.h
new file mode 100644
index 000000000..f13f098dd
--- /dev/null
+++ b/include/inspstring.h
@@ -0,0 +1,11 @@
+#ifndef __IN_INSPSTRING_H
+#define __IN_INSPSTRING_H
+
+#include "inspircd_config.h"
+
+#ifndef HAVE_STRLCPY
+size_t strlcpy(char *dst, const char *src, size_t siz);
+size_t strlcat(char *dst, const char *src, size_t siz);
+#endif
+
+#endif