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)
17 lc = last_char_is(path, '/');
18 if (filename[0] == '/')
20 outbuf = xmalloc(strlen(path)+strlen(filename)+1+(lc==NULL));
21 sprintf(outbuf, (lc==NULL ? "%s/%s" : "%s%s"), path, filename);