diff options
author | Denys Vlasenko | 2011-05-23 00:40:54 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-05-23 00:40:54 +0200 |
commit | b24ef035bd08919075edd79b906e18909ac44eb9 (patch) | |
tree | 78485aace67fbbf061b339b81af143b074ee4108 /libbb/bb_basename.c | |
parent | 7948ecb505135c811a44bc8f8e391622d893d383 (diff) | |
download | busybox-b24ef035bd08919075edd79b906e18909ac44eb9.zip busybox-b24ef035bd08919075edd79b906e18909ac44eb9.tar.gz |
find: cater for libc w/o FNM_CASEFOLD
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/bb_basename.c')
-rw-r--r-- | libbb/bb_basename.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libbb/bb_basename.c b/libbb/bb_basename.c deleted file mode 100644 index d678360..0000000 --- a/libbb/bb_basename.c +++ /dev/null @@ -1,18 +0,0 @@ -/* vi: set sw=4 ts=4: */ -/* - * Utility routines. - * - * Copyright (C) 2007 Denys Vlasenko - * - * Licensed under GPLv2, see file LICENSE in this source tree. - */ - -#include "libbb.h" - -const char* FAST_FUNC bb_basename(const char *name) -{ - const char *cp = strrchr(name, '/'); - if (cp) - return cp + 1; - return name; -} |