Function kdbplus::api::native::kh[][src]

pub unsafe extern "C" fn kh(short: I) -> K
Expand description

Constructor of q short object.

Example

use kdbplus::api::*;
use kdbplus::api::native::*;
 
#[no_mangle]
pub extern "C" fn create_short(_: K) -> K{
  unsafe{kh(-144)}
}
q)shortage: libc_api_examples 2: (`create_short; 1);
q)shortage[]
-144h