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 *b1, const void *b2, size_t len);
bcopy(const void *src, void *dst, size_t len);
bzero(void *b, size_t len);
memchr(const void *b, int c, size_t len);
memcmp(const void *b1, const void *b2, size_t len);
memccpy(void *dst, const void *src, int c, size_t len);
memcpy(void *dst, const void *src, size_t len);
memmove(void *dst, const void *src, size_t len);
memset(void *b, int c, size_t len);
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.
SEE ALSO bcmp(3), bcopy(3), bzero(3), memccpy(3), memchr(3), memcmp(3), memcpy(3), memmove(3), memset(3)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
i need an urgent help for writing a shell script which will extract out and print a substring which is the shortest substring from the given string where first and last character of that substring will be given by the user.
now if the user gives 'a'... (18 Replies)
This is the data I am having in a file
Just for sample I have given 3 records. The file which I am having consists of n number of records.
ABC123 10 01/02/2008 2008-01-03-00.00.00.000000
DYUU 22 02/03/2008 2008-01-04-00.00.00.000000
RF33 88 03/05/2008 2008-01-05-00.00.00.000000
... (24 Replies)
Im stuck in findind solution to ths problem. Please guide me if u have any ideas.
I have two files.
MRVIAAAMLYLYIVVLAICSVGIQGIDYPSVSFNLAGAKSATWDFLRMPHDLVGEDNKYNDGEPITGNII... (25 Replies)
Hi Gurus,I have a seemingly simple problem but struggling with it.It is as follows :
I/p string -
desired o/p -
How to achieve it ?Thanks in advance.
Please use code tags, thank you (20 Replies)
I am looking for a way to extract substrings to local variables. Here is the format of the string variable i am using :
/var/x/www && /usr/x/share/doc && /etc/x/logs
where the substrings i must extract are the "/var/x/www" and such.
I was originally thinking of using... (15 Replies)
I have a table like this
I want to know how many times the string in 2nd column appears in the first column as substring.
For example the first string of 2nd column "cgt" occurs 3 times in the 1st column and "acg" one time.
So my desired output is
THank you very much in advance:) (14 Replies)
What I would like to do is if the lines with % have the same name, then combine the last 9 letters of the string underneath the last occurrence of that ID with the first 9 letters of the string underneath the first occurrence of that ID.
I have a file that looks like this:
%GOGG... (12 Replies)
I have a file that I need to find each interface that has move-group on the interface line and print this line if the lines under the interface does Not have "filter-shared 14".
interface 1/1/1/0 move-group
decription one one one zero
filter-shared 14... (21 Replies)
Hi, I have 2 statements in a file
a.sh start time is Fri Jan 9 17:17:33 CST 2015
a.sh end time is Fri Jan 9 17:47:33 CST 2015
I am required to get only the time out of it. like
17:17:33 & 17:47:33
PLs suggest (21 Replies)
Please, i'd like to extract string just before '.fr'.
Here is some lines of my file:
i'd like to extract this text:
Please, which command i have to use in my script shell ?
... (16 Replies)
I want to merge the lines by matching substring of the first file with first column of the second file.
S00739D_GTGAAA_L001_R2.fq.gz... (14 Replies)