buf_cpy() function
Copies @c size bits out of @c from and into @c to. Any extra bits in the final byte will be set to zero.
Syntax
void *buf_cpy(const void *from,
void *to,
unsigned size);
Arguments
from
The buffer to copy into @c to.
to
The buffer that will receive the copy of @c from.
size
The number of bits to copy.