aboutsummaryrefslogtreecommitdiff
path: root/libbb/bb_basename.c
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2011-05-23 00:40:54 +0200
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2011-05-23 00:40:54 +0200
commitb24ef035bd08919075edd79b906e18909ac44eb9 (patch)
tree78485aace67fbbf061b339b81af143b074ee4108 /libbb/bb_basename.c
parent7948ecb505135c811a44bc8f8e391622d893d383 (diff)
downloadbusybox-b24ef035bd08919075edd79b906e18909ac44eb9.tar.gz
busybox-b24ef035bd08919075edd79b906e18909ac44eb9.tar.bz2
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.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/libbb/bb_basename.c b/libbb/bb_basename.c
deleted file mode 100644
index d678360fc..000000000
--- 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;
-}