summaryrefslogtreecommitdiff
path: root/lib/stpncpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stpncpy.c')
-rw-r--r--lib/stpncpy.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/stpncpy.c b/lib/stpncpy.c
deleted file mode 100644
index 4e0def6..0000000
--- a/lib/stpncpy.c
+++ /dev/null
@@ -1,10 +0,0 @@
-#include <string.h>
-
-char *stpncpy(char *restrict dest, const char *restrict src, size_t n)
-{
- char *d = dest;
- for (; (*d = *src) && n; d++, src++, n--)
- ;
- memset(d, 0, n);
- return d;
-}