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
BSTRING(3) BSD Library Functions Manual BSTRING(3)NAME
bcmp, bcopy, bzero, memccpy, memchr, memcmp, memcpy, memmove, memset -- byte string operations
Standard C Library (libc, -lc)
bcmp(const void *s1, const void *s2, size_t n);
bcopy(const void *s1, void *s2, size_t n);
bzero(void *s, size_t n);
memccpy(void *restrict s1, const void *restrict s2, int c, size_t n);
memchr(const void *s, int c, size_t n);
memcmp(const void *s1, const void *s2, size_t n);
memcpy(void *restrict s1, const void *restrict s2, size_t n);
memmove(void *s1, const void *s2, size_t n);
memset(void *s, int c, size_t n);
These functions operate on variable length strings of bytes. They do not check for terminating null bytes, as the routines listed in
See the specific manual pages for more information.
The include file <string.h> is necessary and sufficient for all functions.
SEE ALSO bcmp(3), bcopy(3), bzero(3), memccpy(3), memchr(3), memcmp(3), memcpy(3), memmove(3), memset(3), compat(5)STANDARDS
The functions memchr(), memcmp(), memcpy(), memmove(), and memset() conform to ISO/IEC 9899:1990 (``ISO C90'').
The functions bzero() and memccpy() appeared in 4.3BSD; the functions bcmp(), bcopy(), appeared in 4.2BSD.
BSD June 4, 1993 BSD
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)