lsm_battery_id_get - Man Page

Retrieves the ID for the battery.

Synopsis

const char  * lsm_battery_id_get (lsm_battery *b);

Arguments

b

Battery to retrieve ID for.

Version

1.3

Description

Retrieves the ID for the battery.

Note

Address returned is valid until lsm_battery gets freed, copy return value if you need longer scope. Do not free returned string.

Return

string. NULL if argument 'b' is NULL or not a valid lsm_battery pointer.

Info

July 2024 Libstoragemgmt C API Manual