Function kdb_c_api::new_string [−][src]
pub fn new_string(string: &str) -> K
Expand description
Constructor of q string object.
Example
use kdb_c_api::*; #[no_mangle] pub extern "C" fn create_string(_: K) -> K{ new_string("this is a text.") }
q)text: libc_api_examples 2: (`create_string; 1);
q)text[]
"this is a text."