Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

bcopy(3) [ultrix man page]

bstring(3)						     Library Functions Manual							bstring(3)

Name
       bcopy, bcmp, bzero, ffs - bit and byte string operations

Syntax
       void bcopy(b1, b2, length)
       char *b1, *b2;
       int length;

       bcmp(b1, b2, length)
       char *b1, *b2;
       int length;

       void bzero(b1, length)
       char *b1;
       int length;

       ffs(i)
       int i;

Description
       The functions and operate on variable length strings of bytes.  They do not check for null bytes as the routines in do.

       The function copies length bytes from string b1 to the string b2.

       The  function  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.

       The function places length 0 bytes in the string b1.

       The ffs finds 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.

Restrictions
       The and routines take parameters backwards from and

See Also
																	bstring(3)

Check Out this Related Man Page

bstring(3C)						   Standard C Library Functions 					       bstring(3C)

NAME
bstring, bcopy, bcmp, bzero - memory operations SYNOPSIS
#include <strings.h> void bcopy(const void *s1, void *s2, size_t n); int bcmp(const void *s1, const void *s2, size_t n); void bzero(void *s, size_t n); DESCRIPTION
The bcopy(), bcmp(), and bzero() functions operate as efficiently as possible on memory areas (arrays of bytes bounded by a count, not terminated by a null character). They do not check for the overflow of any receiving memory area. These functions are similar to the memcpy(), memcmp(), and memset() functions described on the memory(3C) manual page. The bcopy() function copies n bytes from memory area s1 to s2. Copying between objects that overlap will take place correctly. The bcmp() function compares the first n bytes of its arguments, returning 0 if they are identical and 1 otherwise. The bcmp() function always returns 0 when n is 0. The bzero() function sets the first n bytes in memory area s to 0. WARNINGS
The bcopy() function takes parameters backwards from memcmp(). See memory(3C). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
memory(3C), attributes(5), standards(5) SunOS 5.11 15 Apr 2002 bstring(3C)
Man Page

2 More Discussions You Might Find Interesting

1. Solaris

Usbcopy fails with the error message sol-11_1-live-x86.usb is not a multiple of 512

I am trying to create a live image of solaris 11.1. I have used #pkg image-update to upgrade from 11 to 11.1 already. (since only 11.1 can make images of 11.1 due to using new grub) then from within 11.1 I used pkg install install distribution-constructor to get latest usbcopy that should be... (1 Reply)
Discussion started by: taltamir
1 Replies

2. Shell Programming and Scripting

[BASH] Floating point exception

Heyas I have a script (vhs - video handler script, using ffmpeg) to encode videos. It also encodes a dvd, but until now just non-copy-protected ones, so i've tried to add/implement a vobcopy wrapper to be used by my script. At first it looked quite fine, but when changing from the first VOB... (9 Replies)
Discussion started by: sea
9 Replies