Scroll to navigation

lsm_battery_name_get(3) Libstoragemgmt C API Manual lsm_battery_name_get(3)

NAME

lsm_battery_name_get - Retrieves the name for the battery.

SYNOPSIS

const char * lsm_battery_name_get (lsm_battery *b);

ARGUMENTS

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.

lsm_battery_name_get May 2019