| BCOPY(3) | Library Functions Manual | BCOPY(3) |
bcopy — copy byte
string
Standard C Library (libc, -lc)
#include
<strings.h>
void
bcopy(const
void *src, void
*dst, size_t
len);
The
bcopy()
function copies len bytes from string
src to string dst. The two
strings may overlap. If len is zero, no bytes are
copied.
This function is obsolete. The functions
memcpy(3) and/or
memmove(3) should be used
instead. Note that
bcopy()
takes its src and dst arguments
in the opposite order from these.
The bcopy() function conforms to
IEEE Std 1003.1-2001 (“POSIX.1”). The
IEEE Std 1003.1-2004 (“POSIX.1”)
revision marked it as legacy; the IEEE Std 1003.1-2008
(“POSIX.1”) revision removed it from the
specification.
A bcopy() function appeared in
4.2BSD.
| May 5, 2012 | NetBSD 11.0 |