limb 0.2.0

2024-01-09

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.

limb 0.1.0
2023-07-24
byte_equal(3)