summaryrefslogtreecommitdiff
path: root/nacl/curvecp/byte_copy.c
blob: 55f446a47627a02b4ddfd15213891bd846d75674 (plain)
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; }
}