summaryrefslogtreecommitdiff
path: root/libc/string/bcopy.c
blob: 7f929db736181ab8cc7cbdb07fc090b0b382e5e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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++);
}