lsm_battery_record_array_free - Man Page

Frees the memory of battery array.

Synopsis

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

Arguments

bs[]

Array to release memory for.

count

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.

Info

December 2020 Libstoragemgmt C API Manual