Debian Codegraph @

upstream/mageia-cauldron/man3/streq.3

raw
1 '\" t
2 .\" Copyright, the authors of the Linux man-pages project
3 .\"
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\"
6 .TH streq 3 2025-09-20 "Linux man-pages 6.17"
7 .SH NAME
8 streq \- strings 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 streq(const char *" s1 ", const char *" s2 );
16 .fi
17 .SH DESCRIPTION
18 .BR streq ()
19 determines whether the strings
20 .I s1
21 and
22 .I s2
23 are equal.
24 .SH RETURN VALUE
25 .BR streq ()
26 returns true if and only if the strings
27 .I s1
28 and
29 .I s2
30 are equal.
31 .SH ATTRIBUTES
32 For an explanation of the terms used in this section, see
33 .BR attributes (7).
34 .TS
35 allbox;
36 lbx lb lb
37 l l l.
38 Interface Attribute Value
39 T{
40 .na
41 .nh
42 .BR streq ()
43 T} Thread safety MT-Safe
44 .TE
45 .SH STANDARDS
46 GNU.
47 .SH HISTORY
48 gnulib 202601.
49 .SH SEE ALSO
50 .BR memeq (3),
51 .BR strcmp (3),
52 .BR string (3)