diff options
author | Jim Meyering <jim@meyering.net> | 2004-05-29 21:57:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-05-29 21:57:27 +0000 |
commit | 38499a7a5496d1be16c75842d20a6aa4a914744a (patch) | |
tree | a5f59da0b824d5ddc095e12131967726b64de2cd /lib | |
parent | db4db904d09433dd381c581ecc8d98f208921fd2 (diff) | |
download | coreutils-38499a7a5496d1be16c75842d20a6aa4a914744a.tar.xz |
(IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Define.
Diffstat (limited to 'lib')
-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); |