File: byte_copy.c

package info (click to toggle)
dot-forward 1%3A0.71-2.2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 488 kB
  • ctags: 344
  • sloc: ansic: 2,840; makefile: 367; sh: 131
file content (14 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (79)
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;
  }
}