lsm_battery_id_get(3) | Libstoragemgmt C API Manual | lsm_battery_id_get(3) |
NAME¶
lsm_battery_id_get - 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.
lsm_battery_id_get | January 2023 |