Lines Matching refs:dir_length
317 size_t dir_length = strlen (current_file);
319 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);