File: bcopy.c

package info (click to toggle)
smail 3.2.0.102-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,228 kB
  • ctags: 3,924
  • sloc: ansic: 41,366; sh: 3,434; makefile: 2,349; awk: 689; perl: 598; yacc: 427; sed: 2
file content (19 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* @(#) bcopy.c,v 1.2 1990/10/24 05:19:23 tron Exp */

/*
 * bcopy(b1, b2, n)  -  copy block b1 to b2 for n bytes.
 *
 * Caution:  This routine does not obey the full 4.3BSD bcopy semantics,
 *	     in that overlapping moves are not handled in any particularly
 *	     interresting manner.
 */
bcopy(b1, b2, n)
    char *b1;
    char *b2;
    unsigned n;
{
    while (n > 0) {
	*b2++ = *b1++;
	--n;
    }
}