Skip to main content

ks

Function ks 

Source
pub unsafe extern "C" fn ks(symbol: S) -> K
Expand description

Constructor of q symbol object.

ยงExample

#[macro_use]
extern crate kdbplus;
use kdbplus::api::*;
use kdbplus::api::native::*;

#[no_mangle]
pub extern "C" fn create_symbol(_: K) -> K{
  unsafe{ks(str_to_S!("symbolism"))}
}
q)formal: libc_api_examples 2: (`create_symbol; 1);
q)formal[]
`symbolism
q)`symbolism ~ formal[]
1b