1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

(dir_name): Rename from dirname.

Make argument `const'.  Include "dirname.h"
This commit is contained in:
Jim Meyering
1998-12-07 06:25:54 +00:00
parent 1698d53f72
commit b4640ed990

View File

@@ -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;