(FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
authorJim Meyering <jim@meyering.net>
Sat, 12 May 2001 15:38:00 +0000 (15:38 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 12 May 2001 15:38:00 +0000 (15:38 +0000)
commitdfce97c0fc4709db67a9f4cfc400549b41d1e8b5
tree52a4c23c5c721f86d487202366a63f3905b94a18
parentaa4998c802964cc7ea2a09e8aacfbadc5a78b843
(FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.

Include <string.h> instead of <stdlib.h>.
Do not include <assert.h>; no longer needed.
Include xalloc.h.
(memrchr): Remove decl.
(dir_name_r): Remove.
(dir_len): Renamed from dirlen.  All callers changed.
Rewrite in terms of base_name, for simplicity and consistency.
(dir_name): Never return NULL.  All callers changed.
Do not include <stdlib.h> in test program; no longer needed.
return 0; is fine for test program.
lib/dirname.c