Index Index for
Section 9r
Index Alphabetical
listing for B
Bottom of page Bottom of
page

bcopy(9r)

NAME

bcopy - General: Copies a series of bytes with a specified limit

SYNOPSIS

void bcopy( char *b1, char *b2, int n );

ARGUMENTS

b1 Specifies a pointer to a byte string (array of characters). This pointer can reside in kernel address space or in user address space. b2 Specifies a pointer to a buffer of at least n bytes. This pointer can reside in kernel address space or in user address space. n Specifies the number of bytes to be copied.

DESCRIPTION

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.

RETURN VALUES

None

EXAMPLES

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); . . .

SEE ALSO

Routines: blkclr(9r), copystr(9r), ovbcopy(9r), strcpy(9r), strncpy(9r)

Index Index for
Section 9r
Index Alphabetical
listing for B
Top of page Top of
page