*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> bstring (3c)              
Title
Content
Arch
Section
 

Contents


BSTRING(3C)							   BSTRING(3C)


NAME    [Toc]    [Back]

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

SYNOPSIS    [Toc]    [Back]

     #include <strings.h>

     void bcopy(const void *src, void *dst, size_t length);

     int bcmp(const void *b1, const void *b2, size_t length);

     void bzero(void *b, size_t	length);

     void blkclr(void *b, size_t length);

     int ffs(unsigned int i);

DESCRIPTION    [Toc]    [Back]

     The functions bcopy, bcmp,	and bzero operate on variable length strings
     of	bytes.	They do	not check for null bytes as the	routines in string(3)
     do.

     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 and blkclr place length zero	bytes in the string b.

     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.

NOTE    [Toc]    [Back]

     The use of	overlapping buffers with bcopy is not guaranteed to work.  Use
     the memmove(3C) function if the buffers might overlap.

SEE ALSO    [Toc]    [Back]

      
      
     memory(3c)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
bstring FreeBSD byte string operations
bstring Linux byte string operations
bstring OpenBSD byte string operations
bstring NetBSD byte string operations
memset OpenBSD write a byte to byte string
memset NetBSD write a byte to byte string
memchr NetBSD locate byte in byte string
memset FreeBSD write a byte to byte string
memset NetBSD write a byte to byte string
memchr FreeBSD locate byte in byte string
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service