lsm_battery_name_get - Man Page

Retrieves the name for the battery.

Synopsis

const char  * lsm_battery_name_get (lsm_battery *b);

Arguments

b

Battery to retrieve name for.

Version

1.3

Description

Retrieves the name 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

April 2023 Libstoragemgmt C API Manual