|
Kernel Functions for Drivers | bcmp(9F) |
| 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); |
|
Architecture independent level 1 (DDI/DKI).
|
|
-
s1
- Pointer to the first character string.
-
s2
- Pointer to the second character string.
-
len
- Number of bytes to be compared.
|
|
bcmp() compares two byte arrays of length len.
|
|
bcmp() returns 0 if the arrays are identical, or 1 if they are not.
|
|
bcmp() can be called from user or interrupt context.
|
|
Unlike strcmp(9F), bcmp() does not terminate when it encounters
a null byte.
|
| |