Lines Matching refs:length
26 /* Return the length of the prefix of FILE that will be used by
35 size_t length;
48 for (length = last_component (file) - file;
49 prefix_length < length; length--)
50 if (! ISSLASH (file[length - 1]))
52 return length;
73 size_t length = dir_len (file);
74 bool append_dot = (length == 0
76 && length == FILE_SYSTEM_PREFIX_LEN (file)
78 char *dir = malloc (length + append_dot + 1);
81 memcpy (dir, file, length);
83 dir[length++] = '.';
84 dir[length] = '\0';