---
name: "bcmp"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/bcmp/9"
---

# bcmp(9)

returns 0 if and only if the buffers have identical contents.

## NAME

bcmp - returns 0 if and only if the buffers have identical contents.

## SYNOPSIS

**int bcmp(const void \*** *a***, const void \*** *b***, size\_t** *len***);**

## ARGUMENTS

*a*

pointer to first buffer.

*b*

pointer to second buffer.

*len*

size of buffers.

## DESCRIPTION

The sign or magnitude of a non-zero return value has no particular meaning, and architectures may implement their own more efficient **bcmp**. So while this particular implementation is a simple (tail) call to memcmp, do not rely on anything but whether the return value is zero or non-zero.

## COPYRIGHT
