Lines Matching defs:length
29 /* Return the length of `dirname (FILE)', or zero if FILE is
36 size_t length;
39 for (length = base_name (file) - file; prefix_length < length; length--)
40 if (! ISSLASH (file[length - 1]))
41 return length;
55 size_t length = dir_len (file);
56 bool append_dot = (length == FILE_SYSTEM_PREFIX_LEN (file));
57 char *dir = xmalloc (length + append_dot + 1);
58 memcpy (dir, file, length);
60 dir[length++] = '.';
61 dir[length] = 0;