Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/libbb/get_last_path_component.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/libbb/get_last_path_component.c
r2725 r3232 7 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 8 */ 9 #include "libbb.h" 9 10 10 #include "libbb.h" 11 const char* FAST_FUNC bb_basename(const char *name) 12 { 13 const char *cp = strrchr(name, '/'); 14 if (cp) 15 return cp + 1; 16 return name; 17 } 18 11 19 /* 12 20 * "/" -> "/"
Note:
See TracChangeset
for help on using the changeset viewer.