aboutsummaryrefslogtreecommitdiff
path: root/coreutils/basename.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 12:47:25 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-14 12:47:25 +1000
commit9df56f96fd9a213189ca94c1fccfc3c42bd9c16a (patch)
treedb1db005b59e2b78d5daf9527fa8fc604e07e8c4 /coreutils/basename.c
parent30c62e541a1484fedc3d689d62f96d246a28b147 (diff)
parent5f3303712ef483d270097cae4ba0a559b1056121 (diff)
downloadbusybox-w32-9df56f96fd9a213189ca94c1fccfc3c42bd9c16a.tar.gz
busybox-w32-9df56f96fd9a213189ca94c1fccfc3c42bd9c16a.tar.bz2
busybox-w32-9df56f96fd9a213189ca94c1fccfc3c42bd9c16a.zip
Merge branch 'origin/master' (early part)
Diffstat (limited to 'coreutils/basename.c')
-rw-r--r--coreutils/basename.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c
index 8a5597e65..d1ad91ba1 100644
--- a/coreutils/basename.c
+++ b/coreutils/basename.c
@@ -20,6 +20,16 @@
20 * 3) Save some space by using strcmp(). Calling strncmp() here was silly. 20 * 3) Save some space by using strcmp(). Calling strncmp() here was silly.
21 */ 21 */
22 22
23//kbuild:lib-$(CONFIG_BASENAME) += basename.o
24
25//config:config BASENAME
26//config: bool "basename"
27//config: default y
28//config: help
29//config: basename is used to strip the directory and suffix from filenames,
30//config: leaving just the filename itself. Enable this option if you wish
31//config: to enable the 'basename' utility.
32
23#include "libbb.h" 33#include "libbb.h"
24 34
25/* This is a NOFORK applet. Be very careful! */ 35/* This is a NOFORK applet. Be very careful! */