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
The awk command is one of the most powerfull commands in UNIX. Can someone please explain to me how this command works and give me an example please. I do not understand this command and also the all the -Ffs and -v and -f variables that are used in this command. I never used the awk... (5 Replies)
I have a simple question... In C do we have a standard library function which will return the pointer to a substring at certain offset and having certain length...
Ofcourse we should take care not to access beyond allocated length in the parent string and don't overwrite beyond allocated... (2 Replies)
I need to extract only XML details from large log file which may contain other unwanted junk details.
For example, our xml will be start as <OUTBOUND_MESSAGE .....> and ends with </OUTBOUND_MESSAGE>. I want to extract only lines between these start and end tag (Including these tags)... (5 Replies)
I am currently bringing up an offsite location, right now I am in the process of copying some data offsite (about 400GB).
The problem I see is that running a single rsync for everything is not using the available bandwidth and testing shows that I double in speed for each instance of Rsync I am... (3 Replies)
I have a lot of very large hex files that I need to change one value at the same offset and save to another file. I have a script that finds each file and just need to put an operator for each file.
I think sed might be able to do this but I have not used it before and would like some help. If... (8 Replies)
I am new to Unix and need help with the following (to you all I'm sure) simple task. I am trying to output the differences between previous snaphots of various filesystem sizes to the present sizes.
I have three files (e.g.) :
file 1 file 2 file 3
10 100 /var... (4 Replies)
I'm looking for a program or some way to backup my server to another location onto another server. Does anyone have any ideas? What utility, server O/S(I would like to use Linux RH or CentOS)?
Whats the best way to do this?
I am fairly new with Unix.
Thanks in advance (6 Replies)
I have a .gz file whose contents look like below.
Is it possible to find out the byte offset of each record from the .gz file.
Like in an uncompressed file.
grep -nb "Filename" give the byte offset of the record in this case.
... (4 Replies)
Ive been trying to slide the second column one line down while keeping the first one in place. For a start, I tried to see if I can go through every line and print the element located on the line below with the following command, but it didnt work.
Maybe awk is not the right way to do it. Matlab... (6 Replies)
I am trying to get the position of a repeated string in a line using
grep -b -o "pattern"
In my server I am using GNU grep version 2.14 and the code is working fine. However when I am deploying the same code in a different server which is using GNU grep version 2.5.1 the code is not... (3 Replies)
I want to offset the file numbers. can you please make some awk code or linux code for the same.
input file names
offset --> 30
ANI_WFMASS_PIST00032.gif... (14 Replies)
I've created a pretty straightforward shell script to do backups via rsync. Every night it rsyncs a copy of a website (approx 60GB) to the local machine. Once a week, after the rsync step, it zips the local copy of the whole site into 2GB chunks and places them in another folder.
When running... (3 Replies)
I have an csv file which contends value GPS time for each record and x, y coordinates.. The purpose is to identify which vps does not match with the law parameters in the relation time and offset.
In the graphic attached you can see example of 3 vps which are showed in red color and... (12 Replies)
We had a hardware problem with an IBM System p5 server, with AIX 5.2
We restore from a tape the last backup we had, but the server does not boot up as expected.
The server try to mount some directories from a storage, but could not comunicate with them, we check the FC and everything is... (12 Replies)