Function kdb_c_api::new_short[][src]

pub fn new_short(short: I) -> K
Expand description

Constructor of q short object. Relabeling of kh.

Example

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