| 1 |
'\" t |
| 2 |
.\" Copyright, the authors of the Linux man-pages project |
| 3 |
.\" |
| 4 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 5 |
.\" |
| 6 |
.TH memeq 3 2025-09-20 "Linux man-pages 6.18" |
| 7 |
.SH NAME |
| 8 |
memeq \- memory equal |
| 9 |
.SH LIBRARY |
| 10 |
gnulib \- The GNU Portability Library |
| 11 |
.SH SYNOPSIS |
| 12 |
.nf |
| 13 |
.B #include <string.h> |
| 14 |
.P |
| 15 |
.BI "bool memeq(const void *" m1 ", const void *" m2 ", size_t " n ); |
| 16 |
.fi |
| 17 |
.SH DESCRIPTION |
| 18 |
.BR memeq () |
| 19 |
determines whether the first |
| 20 |
.I n |
| 21 |
bytes of the memory areas pointed to by |
| 22 |
.I m1 |
| 23 |
and |
| 24 |
.I m2 |
| 25 |
are equal. |
| 26 |
.SH RETURN VALUE |
| 27 |
.BR memeq () |
| 28 |
returns true if and only if the first |
| 29 |
.I n |
| 30 |
bytes of the memory areas pointed to by |
| 31 |
.I m1 |
| 32 |
and |
| 33 |
.I m2 |
| 34 |
are equal. |
| 35 |
.SH ATTRIBUTES |
| 36 |
For an explanation of the terms used in this section, see |
| 37 |
.BR attributes (7). |
| 38 |
.TS |
| 39 |
allbox; |
| 40 |
lbx lb lb |
| 41 |
l l l. |
| 42 |
Interface Attribute Value |
| 43 |
T{ |
| 44 |
.na |
| 45 |
.nh |
| 46 |
.BR memeq () |
| 47 |
T} Thread safety MT-Safe |
| 48 |
.TE |
| 49 |
.SH STANDARDS |
| 50 |
GNU. |
| 51 |
.SH HISTORY |
| 52 |
gnulib 202601. |
| 53 |
.SH SEE ALSO |
| 54 |
.BR streq (3), |
| 55 |
.BR memcmp (3), |
| 56 |
.BR string (3) |