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

Function cstring_destructor

src/exec.rs:20–22  ·  view source on GitHub ↗
(raw: *mut c_void)

Source from the content-addressed store, hash-verified

18}
19
20unsafe extern "C" fn cstring_destructor(raw: *mut c_void) {
21 drop(CString::from_raw(raw.cast::<c_char>()));
22}
23
24impl Statement {
25 pub fn prepare(db: *mut sqlite3, sql: &str) -> Result<Self, Box<dyn Error>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected