gobj_decr_stat()

gobj_decr_stat()#

Decrements the specified statistic attribute of the given hgobj by a given value and returns the new value.

Prototype

json_int_t gobj_decr_stat(
    hgobj gobj,
    const char *path,
    json_int_t value
);

Parameters

Key

Type

Description

gobj

hgobj

The hgobj instance whose statistic attribute is to be decremented.

path

const char *

The name of the statistic attribute to decrement.

value

json_int_t

The amount by which to decrement the statistic.


Return Value

The new value of the statistic after decrementing.

Notes

If the statistic attribute does not exist, it is initialized to zero before decrementing.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples