1 |
/* Copyright (C) 1998 Free Software Foundation, Inc. |
/* Copyright (C) 1998, 2001 Free Software Foundation, Inc. |
2 |
|
|
3 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
4 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
25 |
# endif |
# endif |
26 |
# endif |
# endif |
27 |
|
|
28 |
char * |
# ifndef DIRECTORY_SEPARATOR |
29 |
dir_name PARAMS ((const char *path)); |
# define DIRECTORY_SEPARATOR '/' |
30 |
|
# endif |
31 |
|
|
32 |
|
# ifndef ISSLASH |
33 |
|
# define ISSLASH(C) ((C) == DIRECTORY_SEPARATOR) |
34 |
|
# endif |
35 |
|
|
36 |
|
# ifndef FILESYSTEM_PREFIX_LEN |
37 |
|
# define FILESYSTEM_PREFIX_LEN(Filename) 0 |
38 |
|
# endif |
39 |
|
|
40 |
|
char *base_name PARAMS ((char const *path)); |
41 |
|
char *dir_name PARAMS ((char const *path)); |
42 |
|
size_t base_len PARAMS ((char const *path)); |
43 |
|
size_t dir_len PARAMS ((char const *path)); |
44 |
|
|
45 |
|
int strip_trailing_slashes PARAMS ((char *path)); |
46 |
|
|
47 |
#endif /* not DIRNAME_H_ */ |
#endif /* not DIRNAME_H_ */ |