Here is the bcopy man page from AIX:
-------------------------------------------------------------------
bcopy, bcmp, bzero or ffs Subroutine
Purpose
Performs bit and byte string operations.
Library
Standard C Library (libc.a)
Syntax
void bcopy (Source, Destination, Length)
char *Source, *Destination;
int Length;
int bcmp (String1, String2, Length)
char *String1, *String2;
int Length;
void bzero (String, Length)
char *String;
int Length;
int ffs (Index)
int Index;
Description
Note: The bcopy subroutine takes parameters backwards from the
strcpy subroutine.
The bcopy, bcmp, and bzero subroutines operate on variable length
strings of bytes. They do not check for null bytes as do the
string routines.
The bcopy subroutine copies the value of the Length parameter in
bytes from the string in the Source parameter to the string in
the Destination parameter.
The bcmp subroutine compares the byte string in the String1
parameter against the byte string of the String2 parameter, re-
turning a zero value if the two strings are identical and a
nonzero value otherwise. Both strings are assumed to be Length
bytes long.
The bzero subroutine zeroes out the string in the String parame-
ter for the value of the Length parameter in bytes.
The ffs subroutine finds the first bit set in the Index parameter
passed to it and returns the index of that bit. Bits are num-
bered starting at 1. A return value of 0 indicates that the value
passed is 0.
Implementation Specifics
These subroutines are part of Base Operating System (BOS) Run-
time.
Suggested Reading
Prerequisite Information
List of String Manipulation Services in AIX Version 3.2 General
Programming Concepts.
Subroutines Overview in AIX Version 3.2 General Programming Con-
cepts.
Related Information
The memcmp, memccpy, memchr, memcpy, memmove, memset subrou-
tines, strcat, strncat, strxfrm, strcpy, strncpy, or strdup sub-
routine, strcmp, strncmp, strcasecmp, strncasecmp, or strcoll
subroutine, strlen, strchr, strrchr, strpbrk, strspn, strcspn,
strstr, or strtok subroutine, swab subroutine.
-------------------------------------------------------------------
Later,
Sambo P-)
<Sambo@Caribe-Enterprises.com>
Hark, the Herald Tribune sings,
Advertising wondrous things.
-- Tom Lehrer
{NOTE: The [random] quote above was provided via the 'fortune' program.}
|