home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
lan
/
soss.arj
/
RPC
/
BCOPY.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-02-22
|
849b
|
61 lines
/*
* bcopy.c --
* Implements bcopy(2) and bzero(2) byte operations.
*
* Author:
* See-Mong Tan, 6/26/88
*/
#include <stdio.h>
/*
* bcopy(char *s1, char *s2, int len) --
* Copies len bytes from s1 to s2
*/
bcopy(s1, s2, len)
char *s1, *s2;
int len;
{
for(; len > 0; len--)
*s2++ = *s1++;
}
bcopy_nf(s1, s2, len)
char *s1;
char far *s2;
int len;
{
for(; len > 0; len--)
*s2++ = *s1++;
}
bcopy_fn(s1, s2, len)
char far *s1;
char *s2;
int len;
{
for(; len > 0; len--)
*s2++ = *s1++;
}
bcopy_ff(s1, s2, len)
char far *s1;
char far *s2;
int len;
{
for(; len > 0; len--)
*s2++ = *s1++;
}
/*
* bzero(char *s, int len) --
* Places len zero byes in s
*/
bzero(s, len)
char *s;
int len;
{
for(; len > 0; len--)
*s++ = (char) 0;
}