summaryrefslogtreecommitdiff
path: root/src/strings/bcopy.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 15:38:07 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 15:38:07 -0400
commit1f4e410fdcff7cc96c5a0c0fb97172871d0ae347 (patch)
treef2522eb7b3fe9868934abc2c3bbb8a1eab132878 /src/strings/bcopy.c
parent81c9e19e3dfb3f99f7c16167734257aeca9ac922 (diff)
implement in terms of <string.h> equivalent
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;
}
/*