changeset 2900:d8e5c3a40803

tweak comment
author Jim Meyering <jim@meyering.net>
date Sat, 21 Oct 2000 12:46:58 +0000
parents 358c244dcacf
children ccf5cdc692a1
files lib/dirname.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/dirname.c
+++ b/lib/dirname.c
@@ -49,8 +49,10 @@
 
 #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)
 {