Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

bcmp - compare memory areas

&pagelevel(4)&pagelevel

Syntax

#include <strings.h>

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

Description bcmp() compares the first n bytes as of the memory address pointed to by s1 with the

memory area addressed via s2. It is assumed that both areas in the memory are at least n
bytes long.

Return val.

0

!= 0

All n bytes are the same, or n=0.

The two memory areas are different.

Note

See also

Portable applications should use the memcmp() function instead of bcmp().

memcmp(), strings.h.