byte_copy.c 160 B

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