diff options
author | Greg McGary <greg@mcgary.org> | 1997-04-18 06:37:07 +0000 |
---|---|---|
committer | Greg McGary <greg@mcgary.org> | 1997-04-18 06:37:07 +0000 |
commit | c0e228864da1b2fbfc85637b5524c4c90ab62fce (patch) | |
tree | c30081f0af75ba51194bd672180690d6524b0448 /misc.c | |
parent | ad89a5d46547cb45b918926269ca2883eccf5e23 (diff) | |
download | idutils-c0e228864da1b2fbfc85637b5524c4c90ab62fce.tar.gz idutils-c0e228864da1b2fbfc85637b5524c4c90ab62fce.tar.bz2 idutils-c0e228864da1b2fbfc85637b5524c4c90ab62fce.zip |
imported from mkid-3.0.7r3_0_7
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -23,6 +23,7 @@ #include "strxtra.h" #include "misc.h" +#if !HAVE_BASENAME char const * basename (char const *path) { @@ -34,7 +35,9 @@ basename (char const *path) else return path; } +#endif +#if !HAVE_DIRNAME char const * dirname (char const *path) { @@ -46,6 +49,7 @@ dirname (char const *path) else return "."; } +#endif /* This is like fgets(3s), except that lines are delimited by NULs rather than newlines. Also, we return the number of characters |