(FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
authorJim Meyering <jim@meyering.net>
Sat, 12 May 2001 14:23:49 +0000 (14:23 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 12 May 2001 14:23:49 +0000 (14:23 +0000)
commitaa4998c802964cc7ea2a09e8aacfbadc5a78b843
tree1c69e9491a65d58e2a55a670792bcad0f526ea9d
parent47bb1b5a733293a121060ac24d263095bdb4e34d
(FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
Do not include <stdio.h>, <assert.h>; no longer needed.
Include <string.h>, <dirname.h>.
(base_name): Allow file names ending in slashes, other than names
that are all slashes.  In this case, return the basename followed
by the slashes.  This is more general, and can be used in places
where the original base_name purposely had an assertion failure.
(base_len): New function.
lib/basename.c