summaryrefslogtreecommitdiff
path: root/portability/string.h
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2021-12-14 14:09:15 -0600
committerTimo Teräs <timo.teras@iki.fi>2021-12-29 20:14:41 +0200
commit2c3cef8787198455f70fb530157ba413b77a2b1e (patch)
tree82f797c6ee5f634d5f20046968fa08e22f9e4573 /portability/string.h
parent03a5e6d9b9978c4e2fc6b904da379407ab9452bf (diff)
downloadapk-tools-2c3cef8787198455f70fb530157ba413b77a2b1e.tar.gz
apk-tools-2c3cef8787198455f70fb530157ba413b77a2b1e.tar.bz2
apk-tools-2c3cef8787198455f70fb530157ba413b77a2b1e.tar.xz
apk-tools-2c3cef8787198455f70fb530157ba413b77a2b1e.zip
portability: take over strlcpy
Diffstat (limited to 'portability/string.h')
-rw-r--r--portability/string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/portability/string.h b/portability/string.h
index 0b8bb71..688d75b 100644
--- a/portability/string.h
+++ b/portability/string.h
@@ -3,3 +3,7 @@
#ifdef NEED_MEMRCHR
extern void *memrchr(const void *m, int c, size_t n);
#endif
+
+#ifdef NEED_STRLCPY
+size_t strlcpy(char *dst, const char *src, size_t size);
+#endif