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

  man pages->NetBSD man pages -> bcmp (9)              
Title
Content
Arch
Section
 

BCMP(9)

Contents


NAME    [Toc]    [Back]

     bcmp - compare byte string

SYNOPSIS    [Toc]    [Back]

     #include <sys/systm.h>

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

DESCRIPTION    [Toc]    [Back]

     The bcmp() interface is obsolete.  Do not add new code using it.  It will
     soon be purged.  Use memcmp(9) instead.  (The bcmp() function is now a
     macro for memcmp(9).)

     The bcmp() function compares byte string b1 against byte string b2,
     returning zero if they are identical, non-zero otherwise.  Both strings
     are assumed to be len bytes long.  Zero-length strings are always identical.


     The strings may overlap.

SEE ALSO    [Toc]    [Back]

      
      
     memcmp(9)

BSD                              July 7, 2001                              BSD
[ Back ]
 Similar pages
Name OS Title
bcmp Linux compare byte strings
cmp Linux compare two files or byte ranges
memset FreeBSD write a byte to byte string
memset NetBSD write a byte to byte string
memchr FreeBSD locate byte in byte string
memset NetBSD write a byte to byte string
memchr OpenBSD locate byte in byte string
memchr NetBSD locate byte in byte string
memset OpenBSD write a byte to byte string
regexec Tru64 Compare string to regular expression
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service