Skip to main content

H

Constant H 

Source
pub const H: c_short = c_short::MIN; // -32_768i16
Expand description

Null value of short.

ยงExample

use kdbplus::*;
use kdbplus::api::*;

#[no_mangle]
pub extern "C" fn short_borders(_: K) -> K{
  let shorts=new_list(qtype::SHORT_LIST, 3);
  let shorts_slice=shorts.as_mut_slice::<H>();
  shorts_slice[0]=qnull_base::H;
  shorts_slice[1]=qinf_base::H;
  shorts_slice[2]=qninf_base::H;
  shorts
}
q)short_borders: `libapi_examples 2: (`short_borders; 1);
q)short_borders[]
0N 0W -0Wh