Function kdb_c_api::new_string_n[][src]

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

Constructor if q string object with a fixed length.

Example

use kdb_c_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"