toxcore/nacl/curvecp/byte_copy.c

9 lines
160 B
C
Raw Normal View History

2013-07-02 21:53:34 +08:00
#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; }
}