Mercurial > hg > octave-nkf > gnulib-hg
changeset 1563:7bd68b2bab3a
(dir_name): Rename from dirname.
Make argument `const'. Include "dirname.h"
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 07 Dec 1998 06:25:54 +0000 |
parents | 6a9d464a83cd |
children | 7c27b6d24ba6 |
files | lib/dirname.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/dirname.c +++ b/lib/dirname.c @@ -33,13 +33,15 @@ # 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;