On Mon, May 12, 2014 at 6:41 PM, Christophe Pedretti <[email protected]> wrote: > 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 ?
Looks correct, but note that this doesn't copy any data by itself; if the original pointer becomes invalid, which happens in various situations documented by the SQLite API, so will the CString. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
