summaryrefslogtreecommitdiff
path: root/checkpasswd/byte_copy.c
blob: eaad11b347b1595b47bdee0b290caf6988238eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "byte.h"

void byte_copy(to,n,from)
register char *to;
register unsigned int n;
register char *from;
{
  for (;;) {
    if (!n) return; *to++ = *from++; --n;
    if (!n) return; *to++ = *from++; --n;
    if (!n) return; *to++ = *from++; --n;
    if (!n) return; *to++ = *from++; --n;
  }
}