summaryrefslogtreecommitdiffstats
path: root/include/xstrncpy.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xstrncpy.h')
-rw-r--r--include/xstrncpy.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/xstrncpy.h b/include/xstrncpy.h
deleted file mode 100644
index 7ed4109d6..000000000
--- a/include/xstrncpy.h
+++ /dev/null
@@ -1,8 +0,0 @@
-/* NUL-terminated version of strncpy() */
-#include <string.h>
-
-/* caller guarantees n > 0 */
-static inline void xstrncpy(char *dest, const char *src, size_t n) {
- strncpy(dest, src, n-1);
- dest[n-1] = 0;
-}