modules/batt_health/sys.c
static int sys_is_battery_full()
{
        char status[128];
	if (BHD_SYS_sys_param_string_get("/sys/class/power_supply/battery/status",
					status, sizeof(status)) < 0)
                return -1;

        return (strncmp(status, "Full", 4) == 0)? 1 : 0;
}
/* Determine if battery is currently full, -1 = error */
Determine if battery is currently full, -1 = error
Determine if battery is currently full - 1 = error
static int sys_is_battery_full()
{
        char status[128];
	if (BHD_SYS_sys_param_string_get("/sys/class/power_supply/battery/status",
					status, sizeof(status)) < 0)
                return -1;
        return (strncmp(status, "Full", 4) == 0)? 1 : 0;
}
static int sys_is_battery_full ( ) { char status [ 128 ] ; if ( BHD_SYS_sys_param_string_get ( " " , status , sizeof ( status ) ) < 0 ) return -1 ; return ( strncmp ( status , " " , 4 ) == 0 ) ? 1 : 0 ; }
Determine if battery is currently full, -1 = error
Determine if battery is currently full - 1 = error