diff options
author | Jim Meyering <jim@meyering.net> | 2000-10-21 12:46:58 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-10-21 12:46:58 +0000 |
commit | 6864ceca1180f5a6a2b9377fd59985c06c3bc991 (patch) | |
tree | ccba9e6ad96451a81f3f09493e8e6156fb9d48b0 | |
parent | ef43db1c4baa92428389eb3a3c667dcee47c6f13 (diff) | |
download | coreutils-6864ceca1180f5a6a2b9377fd59985c06c3bc991.tar.xz |
tweak comment
-rw-r--r-- | lib/dirname.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/dirname.c b/lib/dirname.c index eddbe97a2..8651174ca 100644 --- a/lib/dirname.c +++ b/lib/dirname.c @@ -49,8 +49,10 @@ void *memrchr (); #define BACKSLASH_IS_PATH_SEPARATOR ISSLASH ('\\') -/* Return the length of the directory part of PATH. - Set *RESULT to point to PATH or to `"."', as appropriate. */ +/* Return the length of `dirname (PATH)' and set *RESULT + to point to PATH or to `"."', as appropriate. + Works properly even if there are trailing slashes + (by effectively ignoring them). */ size_t dir_name_r (const char *path, const char **result) { |