diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-04-03 09:56:33 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-04-03 09:56:33 +0000 |
| commit | 4fd481a37b8e1319227b15b7e5ec12404f5fbd3e (patch) | |
| tree | 02e9a0cb96a343f1d8137435170ee5251c72543e /man3/basename.3 | |
| parent | 538d54d9e981ee57532e96cd000b7a5be161d1b7 (diff) | |
| download | man-pages-4fd481a37b8e1319227b15b7e5ec12404f5fbd3e.tar.gz | |
Minor rewordings of previous fix
Diffstat (limited to 'man3/basename.3')
| -rw-r--r-- | man3/basename.3 | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/man3/basename.3 b/man3/basename.3 index 1032378e76..b400ac8132 100644 --- a/man3/basename.3 +++ b/man3/basename.3 @@ -21,7 +21,7 @@ .\" .TH DIRNAME 3 2000-12-14 "GNU" "Linux Programmer's Manual" .SH NAME -dirname, basename \- Parse pathname components +dirname, basename \- parse pathname components .SH SYNOPSIS .nf .B #include <libgen.h> @@ -83,17 +83,17 @@ and .BR basename () may modify the contents of .IR path , -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 -.BR basename () -may return pointers to statically allocated memory +so it may be desirable to pass a copy when calling one of +these functions. +.PP +These functions may return pointers to statically allocated memory which may be overwritten by subsequent calls. +Alternatively, they may return a pointer to some part of +.IR path , +so that the string referred to by +.I path +should not be modified or freed until the pointer returned by +the function is no longer required. .PP The following list of examples (taken from SUSv2) shows the strings returned by |
