Hi all, Vladimir suggested to use CString::new(sqlite3_errmsg(*ppDb), false) and then as_str() on the CString in order to obtain a Rust String from a *c_char.
Another SQLite function, sqlite3_column_text, return a *c_uchar; so, tu use the CString new, which takes a *c_char as argument, i can cast CString::new(sqlite3_column_text(pStmt, column_index) as *i8, false) But is it correct ? Thanks -- Christophe http://chris-pe.github.io/Rustic/ _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
