2 * busybox library eXtendet funcion
4 * concatenate path and file name to new allocation buffer,
5 * not addition '/' if path name already have '/'
12 extern char *concat_path_file(const char *path, const char *filename)
19 lc = last_char_is(path, '/');
20 if (filename[0] == '/')
22 outbuf = xmalloc(strlen(path)+strlen(filename)+1+(lc==NULL));
23 sprintf(outbuf, "%s%s%s", path, (lc==NULL)? "/" : "", filename);