Scroll to navigation

lsm_battery_record_array_free(3) Libstoragemgmt C API Manual lsm_battery_record_array_free(3)

NAME

lsm_battery_record_array_free - Frees the memory of battery array.

SYNOPSIS

int lsm_battery_record_array_free (lsm_battery *bs[], uint32_t count);

ARGUMENTS

Array to release memory for.
Number of elements.

VERSION

1.3

DESCRIPTION

Frees the memory for each of the batteries and then the battery array itself.

RETURN

Error code as enumerated by 'lsm_error_number':
* LSM_ERR_OK
On success or not found.
* LSM_ERR_INVALID_ARGUMENT
When any argument is NULL or not a valid lsm_battery pointer.

lsm_battery_record_array_free April 2021