mirror of https://github.com/mkerrisk/man-pages
Add text to clarify that the pointer returned by these
functions may be into some part of 'path'.
This commit is contained in:
parent
f6a4055f3a
commit
d7c081a94f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue