pub unsafe extern "C" fn ja(list: *mut K, value: *mut V) -> KExpand description
Add a raw value to a q simple list and returns a pointer to the (potentially reallocated) K object.
§Example
use kdbplus::*;
use kdbplus::api::*;
use kdbplus::api::native::*;
#[no_mangle]
pub extern "C" fn create_simple_list(_: K) -> K{
let mut list=unsafe{ktn(qtype::TIMESTAMP_LIST as I, 0)};
for i in 0..5{
let mut timestamp=86400000000000 * i as J;
unsafe{ja(&mut list, std::mem::transmute::<*mut J, *mut V>(&mut timestamp))};
}
list
}§Note
For symbol list, use js.