Searched refs:dir_len (Results 1 – 4 of 4) sorted by relevance
135 size_t dir_len = strlen (dir); in get_charset_aliases() local137 int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); in get_charset_aliases()138 file_name = (char *) malloc (dir_len + add_slash + base_len + 1); in get_charset_aliases()141 memcpy (file_name, dir, dir_len); in get_charset_aliases()143 file_name[dir_len] = DIRECTORY_SEPARATOR; in get_charset_aliases()144 memcpy (file_name + dir_len + add_slash, base, base_len + 1); in get_charset_aliases()
32 dir_len (char const *file) in dir_len() function73 size_t length = dir_len (file); in dir_name()
64 size_t dir_len (char const *file);
950 size_t dir_len = strlen (dir); local959 pglob->gl_pathv[pglob->gl_pathc] = malloc (dir_len + 1970 dir, dir_len),974 memcpy (pglob->gl_pathv[pglob->gl_pathc], dir, dir_len);975 pglob->gl_pathv[pglob->gl_pathc][dir_len] = '/';976 memcpy (&pglob->gl_pathv[pglob->gl_pathc][dir_len + 1],