Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

bcopy - copy memory area

&pagelevel(4)&pagelevel

Syntax

#include <strings.h>

void bcopy(const void *s1, const void *s2, size_t n);

Description bcopy() copies n bytes as of the memory address pointed to by s1 into the memory area

addressed via s2. Overlapping areas are corrected.

Notes

Portable applications should use the memmove() function instead of bcopy().

The two function calls below are virtually equivalent. (Caution: the sequence of the
arguments s1 and s2 is different!):

bcopy(s1, s2, n)memmove(s2, s1, n)

See also

memmove(), strings.h.