shithub: riscv

ref: 8188b4f4f0e07b6669e6ae3c6c1099af917eaab4
dir: /sys/src/ape/lib/bsd/bcopy.c/

View raw version
#include <sys/types.h>
#include <unistd.h>
#include <string.h>

void
bcopy(void *f, void *t, size_t n)
{
	memmove(t, f, n);
}

int
bcmp(void *a, void *b, size_t n)
{
	return memcmp(a, b, n);
}

void
bzero(void *a, size_t n)
{
	memset(a, 0, n);
}