From 0c292c5f936c680ca53f764b31cb1d10aa042a56 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 12 Jun 2021 10:27:41 +0200 Subject: [PATCH] strcmp.3: tfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With a simple backslash, '\0' ended up as ' ' in the man output. Reported-by: Štěpán Němec Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man3/strcmp.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man3/strcmp.3 b/man3/strcmp.3 index c1992c184..3c5a5a6ad 100644 --- a/man3/strcmp.3 +++ b/man3/strcmp.3 @@ -143,7 +143,7 @@ First, some examples using .EX $ \fB./string_comp ABC ABC\fP and 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\e0\(aq = 67 is greater than (67) $ \fB./string_comp ABA ABZ\fP # \(aqA\(aq is ASCII 65; \(aqZ\(aq is ASCII 90 is less than (\-25)