1 2 3 4 5 6 7 8
#include "byte.h" void byte_copy(void *yv,long long ylen,const void *xv) { char *y = yv; const char *x = xv; while (ylen > 0) { *y++ = *x++; --ylen; } }