summaryrefslogtreecommitdiff
path: root/src/strings/bcopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/bcopy.c')
-rw-r--r--src/strings/bcopy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/strings/bcopy.c b/src/strings/bcopy.c
index 0de75234..a464db8e 100644
--- a/src/strings/bcopy.c
+++ b/src/strings/bcopy.c
@@ -1,8 +1,10 @@
+#include <string.h>
#include <strings.h>
int bcopy(const void *s1, void *s2, size_t n)
{
- return 0;
+ memcpy(s1, s2, n);
+ return n;
}
/*