memeq(3) Library Functions Manual memeq(3)

memeq - memory equal

gnulib - The GNU Portability Library

#include <string.h>
bool memeq(const void *m1, const void *m2, size_t n);

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

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

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

Interface Attribute Value
memeq () Thread safety MT-Safe

GNU.

gnulib 202601.

streq(3), memcmp(3), string(3)

2025-09-20 Linux man-pages (unreleased)

Different Versions of this Page: