]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Add text to clarify that the pointer returned by these
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 25 Mar 2007 13:15:27 +0000 (13:15 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 25 Mar 2007 13:15:27 +0000 (13:15 +0000)
functions may be into some part of 'path'.

man3/basename.3

index 2deb5cc3320018a6106ce0bb57fc6fec9d819bce..1032378e76006d68fdcfd7757238720317f44a70 100644 (file)
@@ -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