Skip to main content

KNULL

Constant KNULL 

Source
pub const KNULL: K = _; // {0x0 as *mut api::k0}
Expand description

K nullptr. This value can be used as void value of a function which is called directly by q process and returns K. This null pointer is interpreted as a general null value (::) whose type is 101h.

§Example

use kdbplus::api::*;

#[no_mangle]
pub extern "C" fn vanity(_: K) -> K{
  println!("Initialized something, probably it is your mindset.");
  KNULL
}

§Warning

This value must NOT be used as a returned value for functions called by another function because error_to_string misunderstands the value as an error. For detail, see its warning section.