summaryrefslogtreecommitdiff
path: root/man3/basename.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2008-06-05 17:52:37 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2008-06-05 17:52:37 +0000
commitf8a07a215402da181c4c29c48e034e40f826cd1f (patch)
tree2cfa720b210306738043188a7584196cfd9556f4 /man3/basename.3
parent26868e5b2676c542ba69abc5d255d67ba2a977fe (diff)
s/'/\\'/ to improve rendering in UTF-8.
Diffstat (limited to 'man3/basename.3')
-rw-r--r--man3/basename.38
1 files changed, 4 insertions, 4 deletions
diff --git a/man3/basename.3 b/man3/basename.3
index 1180df95..d48e5907 100644
--- a/man3/basename.3
+++ b/man3/basename.3
@@ -46,10 +46,10 @@ break a null-terminated pathname string into directory
and filename components.
In the usual case,
.BR dirname ()
-returns the string up to, but not including, the final '/', and
+returns the string up to, but not including, the final \'/\', and
.BR basename ()
-returns the component following the final '/'.
-Trailing '/' characters are not counted as part of the pathname.
+returns the component following the final \'/\'.
+Trailing \'/\' characters are not counted as part of the pathname.
.PP
If
.I path
@@ -154,7 +154,7 @@ they modify their argument, and segfault when called with a static string
like "/usr/".
Before glibc 2.2.1, the glibc version of
.BR dirname ()
-did not correctly handle pathnames with trailing '/' characters,
+did not correctly handle pathnames with trailing \'/\' characters,
and generated a segfault if given a NULL argument.
.SH EXAMPLE
.in +4n