From 99abda1a9e7ace6caf12c4fca5eeb0a6010df657 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 21 Oct 2000 12:46:58 +0000 Subject: [PATCH] tweak comment --- lib/dirname.c | 6 ++++-- 1 file 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) { -- 2.11.0