Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bcmp(9F) — SunOS 5.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

strcmp(9F)

bcmp(9F)

NAME

bcmp − compare two byte arrays

SYNOPSIS

#include <sys/types.h>
#include <sys/ddi.h>
int bcmp(char ∗s1, char ∗ s2, size_t len
);

ARGUMENTS

s1 Pointer to the first character string. 

s2 Pointer to the second character string. 

len Number of bytes to be compared. 

INTERFACE LEVEL

Architecture independent level 1 (DDI/DKI). 

DESCRIPTION

bcmp() compares two byte arrays of length len. 

RETURN VALUES

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

CONTEXT

bcmp() can be called from user or interrupt context.

SEE ALSO

strcmp(9F)

Writing Device Drivers

NOTES

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

SunOS 5.4  —  Last change: 11 Apr 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026