diff options
-rw-r--r-- | lib/dirname.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/dirname.h b/lib/dirname.h index 62da37dc9..f678d97e2 100644 --- a/lib/dirname.h +++ b/lib/dirname.h @@ -1,6 +1,6 @@ /* Take file names apart into directory and base names. - Copyright (C) 1998, 2001, 2003 Free Software Foundation, Inc. + Copyright (C) 1998, 2001, 2003, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -33,6 +33,9 @@ # define FILESYSTEM_PREFIX_LEN(Filename) 0 # endif +# define IS_ABSOLUTE_FILE_NAME(Name) (ISSLASH (*Name)) +# define IS_RELATIVE_FILE_NAME(Name) ( ! IS_ABSOLUTE_FILE_NAME (Name)) + char *base_name (char const *path); char *dir_name (char const *path); size_t base_len (char const *path); |