BSTRING(3) Library Functions Manual BSTRING(3)NAME
bcopy, bcmp, bzero, ffs - bit and byte string operations
bcopy(src, dst, length)
char *src, *dst;
bcmp(b1, b2, length)
char *b1, *b2;
The functions bcopy, bcmp, and bzero operate on variable length strings of bytes. They do not check for null bytes as the routines in
Bcopy copies length bytes from string src to the string dst.
Bcmp compares byte string b1 against byte string b2, returning zero if they are identical, non-zero otherwise. Both strings are assumed to
be length bytes long.
Bzero places length 0 bytes in the string b1.
Ffs find the first bit set in the argument passed it and returns the index of that bit. Bits are numbered starting at 1. A return value
of 0 indicates the value passed is zero.
The bcopy routine take parameters backwards from strcpy.
4.2 Berkeley Distribution May 15, 1985 BSTRING(3)
Check Out this Related Man Page
bcopy(3) Library Functions Manual bcopy(3)NAME
bcopy, bcmp, bzero - Perform memory operations
Standard C Library (libc)
const void *source,
const void *string1,
const void *string2,
The following function definitions do not conform to current standards and are supported only for backward compatibility:
const char *source,
const char *string1,
const char *string2,
Interfaces documented on this reference page conform to industry standards as follows:
bcopy(), bcmp(), bzero(): XSH5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
Points to the original string for the bcopy() function. Points to the destination string for the bcopy() function. Specifies the byte
string to be compared to the string2 parameter by the bcmp() function. Specifies the byte string to be compared to the string1 parameter
by the bcmp() function. Specifies the length (in bytes) of the string.
The bcopy(), bcmp(), and bzero() functions operate on variable length strings of bytes. Unlike the string functions, they do not check for
The bcopy() function copies the value of the length parameter in bytes from the string in the source parameter to the string in the desti-
The bcmp() function compares the byte string in the string1 parameter against the byte string of the string2 parameter, returning a 0
(zero) value if the two strings are identical and a nonzero value otherwise.
The bzero() function nulls the string in the string parameter, for the value of the length parameter in bytes.
[Tru64 UNIX] The bcopy() function is similar to the memcpy() function except that the first two parameters are reversed.
Functions: memccpy(3), memcpy(3), string(3), swab(3)
Standards: standards(5) delim off
We are moving from old solaris to new version of solaris. I have copied the gcc compiler installed on old server to new solaris server. But just copying didn't work. So I am trying to build it on the new server. The server version is
sailfish@st-kvar02 -> uname -a
SunOS st-kvar02 5.10... (7 Replies)
I have a unix file with the following contents
ncm_AdjCob.pl -a /ct/mr/prod/wg/applog_AdjDev.log
can anyone explain what it says.
particularly -a ,-c... (5 Replies)
The file which is used is
The commads which I ran... (3 Replies)
sed '/patternstring/ a\ new line string' file1
The above code is not working even with the i option....
it shows sed grambled if '\' after new line string is not being used....after using no changes it is displaying..Pls help (5 Replies)
I have to find last delimiter in each line of a file and store the value after the last '/' in a variable in ksh script...Pls Pls help me:(The file is as shown below:
/opt/apps/cobqa/apps/abbrio/bind/naac6115.bnd... (5 Replies)
I have below requirement and have no idea how to achieve this.
the input file like below. there are multiple sections in file, each section has multiple lines. I need to find certain lines (value1, value2, value3 are key words for line searching) and generate another file. in some... (9 Replies)