summaryrefslogtreecommitdiff
path: root/man3/basename.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2007-03-25 13:15:27 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2007-03-25 13:15:27 +0000
commitd7c081a94fd9f9c98f8343afa347c8b4b5a955e7 (patch)
treeae3e209ffa0c4f7ef7b9c825259c10bc1a7cc18a /man3/basename.3
parentf6a4055f3a7d603b05b1f8563d58c1f3815a9a55 (diff)
Add text to clarify that the pointer returned by these
functions may be into some part of 'path'.
Diffstat (limited to 'man3/basename.3')
-rw-r--r--man3/basename.36
1 files changed, 5 insertions, 1 deletions
diff --git a/man3/basename.3 b/man3/basename.3
index 2deb5cc3..1032378e 100644
--- a/man3/basename.3
+++ b/man3/basename.3
@@ -83,7 +83,11 @@ and
.BR basename ()
may modify the contents of
.IR path ,
-so copies should be passed to these functions.
+so a copy should be passed when calling one of these functions.
+(Because either function may return a pointer to some part of
+.IR path ,
+the copy should not be freed until the pointer returned by
+the function is no longer required.)
Furthermore,
.BR dirname ()
and