File: byte_copy.c

package info (click to toggle)
dot-forward 0.71-2
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 504 kB
  • ctags: 347
  • sloc: ansic: 2,840; makefile: 399; sh: 298
file content (14 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (87)
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;
  }
}