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

  man pages->OpenBSD man pages -> memcmp (3)              
Title
Content
Arch
Section
 

MEMCMP(3)

Contents


NAME    [Toc]    [Back]

     memcmp - compare byte string

SYNOPSIS    [Toc]    [Back]

     #include <string.h>

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

DESCRIPTION    [Toc]    [Back]

     The memcmp() function compares byte string b1  against  byte
string b2.
     Both strings are assumed to be len bytes long.

RETURN VALUES    [Toc]    [Back]

     The  memcmp()  function  returns zero if the two strings are
identical, otherwise
 returns the difference between the first two  differing bytes
     (treated  as  unsigned char values, so that `200' is greater
than ` ',
     for example).  Zero-length strings are always identical.

SEE ALSO    [Toc]    [Back]

      
      
     bcmp(3), strcasecmp(3), strcmp(3), strcoll(3), strxfrm(3)

STANDARDS    [Toc]    [Back]

     The memcmp() function conforms to ANSI  X3.159-1989  (``ANSI
C'').

OpenBSD      3.6                           June      29,     1991
[ 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