MCPcopy Create free account
hub / github.com/asg017/sqlite-loadable-rs / c_string_to_string

Function c_string_to_string

src/table.rs:825–828  ·  view source on GitHub ↗
(c: &*const c_char)

Source from the content-addressed store, hash-verified

823}
824
825fn c_string_to_string(c: &*const c_char) -> std::result::Result<String, Utf8Error> {
826 let bytes = unsafe { CStr::from_ptr(c.to_owned()).to_bytes() };
827 Ok(std::str::from_utf8(bytes)?.to_string())
828}
829fn process_create_args(
830 argc: c_int,
831 argv: *const *const c_char,

Callers 1

process_create_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected