From: "Štěpán Němec" <stepnem@gmail.com>
To: linux-man@vger.kernel.org,
Alejandro Colomar <alx.manpages@gmail.com>,
Michael Kerrisk <mtk.manpages@gmail.com>
Subject: [PATCH] strcmp.3: tfix
Date: Sat, 22 May 2021 18:17:50 +0200 [thread overview]
Message-ID: <20210522161750.2756568-1-stepnem@gmail.com> (raw)
With a single backslash, '\0' ended up as ' ' in the man output.
Signed-off-by: Štěpán Němec <stepnem@gmail.com>
---
man3/strcmp.3 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man3/strcmp.3 b/man3/strcmp.3
index c1992c18427c..469c9b6947d1 100644
--- a/man3/strcmp.3
+++ b/man3/strcmp.3
@@ -143,7 +143,7 @@ First, some examples using
.EX
$ \fB./string_comp ABC ABC\fP
<str1> and <str2> are equal
-$ \fB./string_comp ABC AB\fP # \(aqC\(aq is ASCII 67; \(aqC\(aq \- \(aq\0\(aq = 67
+$ \fB./string_comp ABC AB\fP # \(aqC\(aq is ASCII 67; \(aqC\(aq \- \(aq\\0\(aq = 67
<str1> is greater than <str2> (67)
$ \fB./string_comp ABA ABZ\fP # \(aqA\(aq is ASCII 65; \(aqZ\(aq is ASCII 90
<str1> is less than <str2> (\-25)
base-commit: 65dfda3dd16da5cff236c4a84532ec40d7533578
--
2.31.1
next reply other threads:[~2021-05-22 16:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-22 16:17 Štěpán Němec [this message]
2021-05-23 10:39 ` [PATCH] strcmp.3: tfix Alejandro Colomar (man-pages)
2021-05-23 10:50 ` Alejandro Colomar (man-pages)
2021-05-23 11:11 ` Štěpán Němec
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=20210522161750.2756568-1-stepnem@gmail.com \
--to=stepnem@gmail.com \
--cc=alx.manpages@gmail.com \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).