Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void addPath(char* path, char* child, char* childpath)
- {
- int size_path = length(path);
- for (int i = 0; i < size_path; i++) childpath[i] = path[i];
- childpath[size_path] = '/';
- int length_lastMod = length(child);
- int childPathSize = size_path + length_lastMod + 1;
- int cnt = 0;
- for (int i = size_path + 1; i < childPathSize; i++)
- {
- childpath[i] = child[cnt];
- ++cnt;
- if (cnt == length_lastMod + 1) break;
- }
- childpath[childPathSize] = '\0';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement