Function libmimalloc_sys::mi_realpath
source ยท pub unsafe extern "C" fn mi_realpath(
fname: *const c_char,
resolved_name: *mut c_char,
) -> *mut c_char
Expand description
Resolve a file path name, producing a C
string which can be passed to
mi_free
.
resolved_name
should be null, but can also point to a buffer of at
least PATH_MAX
bytes.
If successful, returns a pointer to the resolved absolute file name, or
null
on failure (with errno
set to the error code).
If resolved_name
was null
, the returned result should be freed with
mi_free
.
This can rarely be useful in FFI code, but is mostly included for completeness.