[][src]Function battery_ffi::battery_last_error_length

#[no_mangle]
pub extern "C" fn battery_last_error_length() -> c_int

Gets error message length if any error had occurred.

Returns

If there was no error before, returns 0, otherwise returns message length including trailing \0.