summaryrefslogtreecommitdiff
path: root/libc/string/bcopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/bcopy.c')
-rw-r--r--libc/string/bcopy.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/string/bcopy.c b/libc/string/bcopy.c
new file mode 100644
index 000000000..7f929db73
--- /dev/null
+++ b/libc/string/bcopy.c
@@ -0,0 +1,15 @@
+/* Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
+ * This file is part of the Linux-8086 C library and is distributed
+ * under the GNU Library General Public License.
+ */
+#include <unistd.h>
+#include <string.h>
+#include <sys/types.h>
+
+void bcopy(const __ptr_t src, __ptr_t dest, size_t len)
+{
+/* (void) memcpy(dest, src, len); */
+ while (len--)
+ *(char *) (dest++) = *(char *) (src++);
+}
+