Skip to main content

kpn

Function kpn 

Source
pub unsafe extern "C" fn kpn(chararray: S, length: J) -> K
Expand description

Constructor if q string object with a fixed length.

ยงExample

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

#[no_mangle]
pub extern "C" fn create_string2(_: K) -> K{
  unsafe{kpn(str_to_S!("The meeting was too long and I felt it s..."), 24)}
}
q)speak_inwardly: libc_api_examples 2: (`create_string2; 1);
q)speak_inwardly[]
"The meeting was too long"