bcmp man page on Solaris

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
Solaris logo
[printable version]

bcmp(9F)		 Kernel Functions for Drivers		      bcmp(9F)

NAME
       bcmp - compare two byte arrays

SYNOPSIS
       #include <sys/types.h>
       #include <sys/ddi.h>

       int bcmp(const void *s1, const void *s2, size_t len);

INTERFACE LEVEL
       Architecture independent level 1 (DDI/DKI).

PARAMETERS
       s1	Pointer to the first character string.

       s2	Pointer to the second character string.

       len	Number of bytes to be compared.

DESCRIPTION
       The bcmp() function compares two byte arrays of length len.

RETURN VALUES
       The bcmp() function returns 0 if the arrays are identical, or 1 if they
       are not.

CONTEXT
       The bcmp() function can be called from user, interrupt, or kernel  con‐
       text.

SEE ALSO
       strcmp(9F)

       Writing Device Drivers

NOTES
       Unlike  strcmp(9F), bcmp() does not terminate when it encounters a null
       byte.

SunOS 5.10			  16 Jan 2006			      bcmp(9F)
[top]

List of man pages available for Solaris

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net