diff options
author | Jim Meyering <jim@meyering.net> | 1998-12-07 06:25:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-12-07 06:25:54 +0000 |
commit | b4640ed99065507d6797c7eb25c18cfa0a0eb792 (patch) | |
tree | d686aad9faa3f4a3408bcd251a16eec8251c6f32 | |
parent | 1698d53f72b07346b2cc5b1bc264717096fb0903 (diff) | |
download | coreutils-b4640ed99065507d6797c7eb25c18cfa0a0eb792.tar.xz |
(dir_name): Rename from dirname.
Make argument `const'. Include "dirname.h"
-rw-r--r-- | lib/dirname.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/dirname.c b/lib/dirname.c index c539efbe8..483c33867 100644 --- a/lib/dirname.c +++ b/lib/dirname.c @@ -33,13 +33,15 @@ char *malloc (); # endif #endif +#include "dirname.h" + /* Return the leading directories part of PATH, allocated with malloc. If out of memory, return 0. Assumes that trailing slashes have already been removed. */ char * -dirname (char *path) +dir_name (const char *path) { char *newpath; char *slash; |