byte_equal(3)
limb manual
byte_equal(3)
NAME
byte_equal - compares two byte arrays
SYNOPSIS
#include <limb/bytestr.h>
int byte_equal(const char *arr1, size_t len, const char *arr2)
DESCRIPTION
The byte_equal
() function returns whether or not arr1
and arr2
, of length
len
, are the same.
RETURN VALUE
The byte_equal
() function returns 1 when the len
first bytes of arr1
and
arr2
are the same. Otherwise it returns 0.