Skip to main content

ai_memory_version

Function ai_memory_version 

Source
#[unsafe(no_mangle)]
pub extern "C" fn ai_memory_version() -> *const c_char
Expand description

FFI: returns the substrate’s Cargo.toml version field as a NUL-terminated UTF-8 C string with 'static lifetime.

§Safety

The returned pointer is valid for the lifetime of the program; callers MUST NOT free it. The pointed-to bytes are immutable.

Stable since v0.7.0 (ARCH-10).