[][src]Function battery_ffi::battery_get_vendor

#[no_mangle]
pub unsafe extern "C" fn battery_get_vendor(ptr: *const Battery) -> *mut c_char

Returns battery vendor.

Caller is required to free returned value with battery_str_free function after using it.

Returns

This function might return NULL if vendor data is not available. Calling battery_str_free is not required in that case, yet it will not lead to any error.

Panics

This function will panic if passed pointer is NULL