Thread (4 messages) 4 messages, 2 authors, 2021-05-23
STALE1846d

[PATCH] strcmp.3: tfix

From: Štěpán Němec <hidden>
Date: 2021-05-22 16:17:56
Subsystem: the rest · Maintainer: Linus Torvalds

With a single backslash, '\0' ended up as ' ' in the man output.

Signed-off-by: Štěpán Němec <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help