From: Andrew Micallef <andrew.micallef@live.com.au>
To: "linux-man@vger.kernel.org" <linux-man@vger.kernel.org>
Subject: Fw: Suggestion for edit
Date: Tue, 7 Apr 2020 07:07:50 +0000 [thread overview]
Message-ID: <MN2PR04MB61571362350C94A82F545152B9C30@MN2PR04MB6157.namprd04.prod.outlook.com> (raw)
In-Reply-To: <MN2PR04MB6157E89BBF15AD9D70DDEA48B9C30@MN2PR04MB6157.namprd04.prod.outlook.com>
Hi,
I'd like to suggest an edit to the description of `strcmp` in the standard C library man page.
I found this description to be kind of confusing, and think the language could be a bit more
straight forward.
At present the description reads as follows:
The strcmp() function compares the two strings s1 and s2. The locale
is not taken into account (for a locale-aware comparison, see
strcoll(3)). It returns an integer less than, equal to, or greater
than zero if s1 is found, respectively, to be less than, to match, or
be greater than s2.
I am suggesting the following edits:
The strcmp() function compares the two strings s1 and s2. The locale
is not taken into account (for a locale-aware comparison, see
strcoll(3)). It returns an integer, which is 0 if the strings
match. Otherwise, a negative integer indicates s1 is less than s2,
while a positive integer indicates s1 is greater than s2.
Regards
Andrew
next parent reply other threads:[~2020-04-07 7:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <MN2PR04MB6157E89BBF15AD9D70DDEA48B9C30@MN2PR04MB6157.namprd04.prod.outlook.com>
2020-04-07 7:07 ` Andrew Micallef [this message]
2020-04-07 8:25 ` Fw: Suggestion for edit Ponnuvel Palaniyappan
2020-04-07 9:17 ` AW: " Walter Harms
2020-04-07 9:45 ` Andrew Micallef
2020-04-07 10:52 ` AW: " Walter Harms
2020-04-09 9:50 ` Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MN2PR04MB61571362350C94A82F545152B9C30@MN2PR04MB6157.namprd04.prod.outlook.com \
--to=andrew.micallef@live.com.au \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.