Add text to clarify that the pointer returned by these

functions may be into some part of 'path'.
This commit is contained in:
Michael Kerrisk 2007-03-25 13:15:27 +00:00
parent f6a4055f3a
commit d7c081a94f
1 changed files with 5 additions and 1 deletions

View 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