Home
last modified time | relevance | path

Searched refs:cwd_len (Results 1 – 3 of 3) sorted by relevance

/external/wpa_supplicant_8/src/utils/
Dos_internal.c157 size_t len = 128, cwd_len, rel_len, ret_len; in os_rel2abs_path() local
178 cwd_len = os_strlen(cwd); in os_rel2abs_path()
180 ret_len = cwd_len + 1 + rel_len + 1; in os_rel2abs_path()
183 os_memcpy(ret, cwd, cwd_len); in os_rel2abs_path()
184 ret[cwd_len] = '/'; in os_rel2abs_path()
185 os_memcpy(ret + cwd_len + 1, rel_path, rel_len); in os_rel2abs_path()
Dos_unix.c297 size_t len = 128, cwd_len, rel_len, ret_len; in os_rel2abs_path() local
325 cwd_len = os_strlen(cwd); in os_rel2abs_path()
327 ret_len = cwd_len + 1 + rel_len + 1; in os_rel2abs_path()
330 os_memcpy(ret, cwd, cwd_len); in os_rel2abs_path()
331 ret[cwd_len] = '/'; in os_rel2abs_path()
332 os_memcpy(ret + cwd_len + 1, rel_path, rel_len); in os_rel2abs_path()
/external/python/cpython3/Python/
Dfileutils.c1835 size_t cwd_len = wcslen(cwd); in _Py_abspath()
1837 size_t len = cwd_len + 1 + path_len + 1; in _Py_abspath()
1849 memcpy(abspath, cwd, cwd_len * sizeof(wchar_t)); in _Py_abspath()
1850 abspath += cwd_len; in _Py_abspath()