1 /* basename.c -- return the last element in a path */
7 #ifndef FILESYSTEM_PREFIX_LEN
8 # define FILESYSTEM_PREFIX_LEN(f) 0
12 # define ISSLASH(c) ((c) == '/')
15 /* In general, we can't use the builtin `basename' function if available,
16 since it has different meanings in different environments.
17 In some environments the builtin `basename' modifies its argument. */
23 char const *base
= name
+= FILESYSTEM_PREFIX_LEN (name
);