ucspi-ssl  0.99e
TLS encryption for IPv6 communication
byte_copy.c
Go to the documentation of this file.
1 /* Public domain. */
2 
3 #include "byte.h"
4 
5 void byte_copy(register void *to,register unsigned int n,register const void *from)
6 {
7  register char *t = to;
8  register const char *f = from;
9 
10  for (;;) {
11  if (!n) return; *t++ = *f++; --n;
12  if (!n) return; *t++ = *f++; --n;
13  if (!n) return; *t++ = *f++; --n;
14  if (!n) return; *t++ = *f++; --n;
15  }
16 }
void byte_copy(register void *to, register unsigned int n, register const void *from)
Definition: byte_copy.c:5