bcopy - General: Copies a series of bytes with a specified
limit
void bcopy(
char *b1,
char *b2,
int n );
Specifies a pointer to a byte string (array of characters).
This pointer can reside in kernel address space or
in user address space. Specifies a pointer to a buffer of
at least n bytes. This pointer can reside in kernel
address space or in user address space. Specifies the
number of bytes to be copied.
The bcopy routine copies n bytes from string b1 to buffer
b2. No check is made for null bytes. The copy is nondestructive,
that is, the address ranges of b1 and b2 can
overlap.
None
The following code fragment shows a call to bcopy:
. . .
struct tc_slot tc_slot[TC_IOSLOTS];
. . .
char *cp;
. . .
bcopy(tc_slot[index].modulename, cp, TC_ROMNAMLEN + 1);
. . .
Routines: blkclr(9r), copystr(9r), ovbcopy(9r), strcpy(9r), strncpy(9r)
bcopy(9r)
[ Back ] |