pub unsafe fn env(
envptr: *const *const c_char,
) -> Result<HashMap<CString, CString>, ParseError>Expand description
Parses a null-terminated array of C strings with “=” delimiters into a key-value map.
The input environment has to contain null-terminated strings containing at least one equal sign (“=”). Every string is split at the first equal sign and added to the map with the first part being the key and the second the value.
If multiple entries have the same key, the last one will be in the result map.
§Segfaults
Uses string_array internally and will segfault for the same reasons as that function.