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 |
---|---|---|
|
|
The |
|
|
The name of the statistic attribute to decrement. |
|
|
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