summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-10-21 12:46:58 +0000
committerJim Meyering <jim@meyering.net>2000-10-21 12:46:58 +0000
commit6864ceca1180f5a6a2b9377fd59985c06c3bc991 (patch)
treeccba9e6ad96451a81f3f09493e8e6156fb9d48b0
parentef43db1c4baa92428389eb3a3c667dcee47c6f13 (diff)
downloadcoreutils-6864ceca1180f5a6a2b9377fd59985c06c3bc991.tar.xz
tweak comment
-rw-r--r--lib/dirname.c6
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)
{