diff options
Diffstat (limited to 'lib/xstrncpy.c')
-rw-r--r-- | lib/xstrncpy.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/xstrncpy.c b/lib/xstrncpy.c deleted file mode 100644 index 79754261..00000000 --- a/lib/xstrncpy.c +++ /dev/null @@ -1,10 +0,0 @@ -/* NUL-terminated version of strncpy() */ -#include <string.h> -#include "xstrncpy.h" - -/* caller guarantees n > 0 */ -void -xstrncpy(char *dest, const char *src, size_t n) { - strncpy(dest, src, n-1); - dest[n-1] = 0; -} |