xref: /original-bsd/lib/libc/string/bcmp.3 (revision 87c91b73)
Copyright (c) 1990 The Regents of the University of California.
All rights reserved.

This code is derived from software contributed to Berkeley by
Chris Torek.

%sccs.include.redist.man%

@(#)bcmp.3 5.1 (Berkeley) 05/15/90

BCMP 3 ""
C 7
NAME
bcmp - compare byte string
SYNOPSIS
#include <string.h>

int
bcmp(const char *b1, const char *b2, size_t len);
DESCRIPTION
Bcmp 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
bcmp(3), memcmp(3), strcasecmp(3), strcmp(3), strcoll(3), strncasecmp(3), strncmp(3), strxfrm(3)