Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/libbb/concat_path_file.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/libbb/concat_path_file.c
r1765 r2725 6 6 * If you wrote this, please acknowledge your work. 7 7 * 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.8 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 9 9 */ 10 10 11 /* concatenate path and file name to new allocation buffer, 12 * not adding '/' if path name already has '/' 13 */ 11 /* Concatenate path and filename to new allocated buffer. 12 * Add '/' only as needed (no duplicate // are produced). 13 * If path is NULL, it is assumed to be "/". 14 * filename should not be NULL. 15 */ 14 16 15 17 #include "libbb.h" 16 18 17 char *concat_path_file(const char *path, const char *filename)19 char* FAST_FUNC concat_path_file(const char *path, const char *filename) 18 20 { 19 21 char *lc;
Note:
See TracChangeset
for help on using the changeset viewer.