Skip to main content

new_string_n

Function new_string_n 

Source
pub fn new_string_n(string: &str, length: J) -> K
Expand description

Constructor if q string object with a fixed length.

ยงExample

use kdbplus::api::*;

#[no_mangle]
pub extern "C" fn create_string2(_: K) -> K{
  new_string_n("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"