Function wasmer_c_api::error::wasmer_last_error_length
source · #[no_mangle]
pub extern "C" fn wasmer_last_error_length() -> c_int
Expand description
Gets the length in bytes of the last error if any, zero otherwise. This includes th NUL terminator byte.
This can be used to dynamically allocate a buffer with the correct number of bytes needed to store a message.
§Example
See this module’s documentation to get a complete example.