fn with_c_str<T, F>(bytes: &[u8], f: F) -> Result<T>where F: FnOnce(&CStr) -> Result<T>,
Runs a closure with bytes passed in as a &CStr.
bytes
&CStr