A
bcopy()
function appeared in
BSD 4.2 .
Its prototype existed previously in
<string.h>
before it was moved to
<strings.h>
for
IEEE Std 1003.1-2001 ("
POSIX.1")
compliance.
IEEE Std 1003.1-2008 ("POSIX.1")
removes the specification of
bcopy()
and it is marked as LEGACY in
IEEE Std 1003.1-2004 ("POSIX.1").
New programs should use
memmove(3).
If the input and output buffer do not overlap, then
memcpy(3)
is more efficient.
Note that
bcopy()
takes
src
and
dst
in the opposite order from
memmove()
and
memcpy().