summaryrefslogtreecommitdiff
path: root/src/string/memccpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/memccpy.c')
-rw-r--r--src/string/memccpy.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/string/memccpy.c b/src/string/memccpy.c
deleted file mode 100644
index c722ba7d..00000000
--- a/src/string/memccpy.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <string.h>
-#include "_safety.h"
-
-void *memccpy(void * restrict s1, const void * restrict s2, int c, size_t n)
-{
- SIGNAL_SAFE(0);
-
- unsigned char *dst = s1;
- const unsigned char *src = s2;
- size_t i = 0;
-
- ASSERT_NOOVERLAP(s1, s2, n);
-
- for (i = 0; i < n; i++) {
- dst[i] = src[i];
- if (dst[i] == (unsigned char)c) {
- return dst + i + 1;
- }
- }
-
- return NULL;
-}
-
-__check_4(void *, 0, memccpy, void * restrict, const void * restrict, int, size_t)
-
-/*
-XOPEN(4)
-*/