memeq(3)

memeq3

Memory equal

Usage

#include <string.h>  // see memory.h(3head)

bool memeq(const void *m1, const void *m2, size_t n);

Library

gnulib - The GNU Portability Library

Overview

memeq() determines whether the first n bytes of the memory areas pointed to by m1 and m2 are equal.

Return value

memeq() returns true if and only if the first n bytes of the memory areas pointed to by m1 and m2 are equal.

Attributes

For an explanation of the terms used in this section, see attributes(7).

InterfaceAttributeValue
memeq()Thread safetyMT-Safe

Standards

GNU.

History

gnulib 202601.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.