Searched refs:dir_length (Results 1 – 2 of 2) sorted by relevance
317 size_t dir_length = strlen (current_file); variable319 while (dir_length && current_file[dir_length - 1] != '/')320 --dir_length;321 while (dir_length && current_file[dir_length - 1] == '/')322 --dir_length;324 xmalloc (dir_length + 1 + strlen (skeleton_user) + 1);325 if (dir_length > 0)327 memcpy (skeleton_build, current_file, dir_length);328 skeleton_build[dir_length++] = '/';330 strcpy (skeleton_build + dir_length, skeleton_user);
2388 size_t dir_length = strlen (current_file); local2390 while (dir_length && current_file[dir_length - 1] != '/')2391 --dir_length;2392 while (dir_length && current_file[dir_length - 1] == '/')2393 --dir_length;2395 xmalloc (dir_length + 1 + strlen (skeleton_user) + 1);2396 if (dir_length > 0)2398 memcpy (skeleton_build, current_file, dir_length);2399 skeleton_build[dir_length++] = '/';2401 strcpy (skeleton_build + dir_length, skeleton_user);