1 /* basename.c -- return the last element in a path */
7 #include <backupfile.h>
9 #ifndef FILESYSTEM_PREFIX_LEN
10 #define FILESYSTEM_PREFIX_LEN(f) 0
14 #define ISSLASH(c) ((c) == '/')
17 /* In general, we can't use the builtin `basename' function if available,
18 since it has different meanings in different environments.
19 In some environments the builtin `basename' modifies its argument. */
25 char const *base = name += FILESYSTEM_PREFIX_LEN (name);