pub unsafe extern "C" fn kp(chararray: S) -> KExpand description
Constructor of q string object.
ยงExample
#[macro_use]
extern crate kdbplus;
use kdbplus::api::*;
use kdbplus::api::native::*;
#[no_mangle]
pub extern "C" fn create_string(_: K) -> K{
unsafe{kp(str_to_S!("this is a text."))}
}q)text: libc_api_examples 2: (`create_string; 1);
q)text[]
"this is a text."