diff options
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; -} |