HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
slapi_counter_add()
slapi_counter_subtract()
slapi_counter_get_value()
31.9 slapi_counter_subtract()
Subtracts the specified amount from the counter value.
Syntax
#include "slapi-plugin.h"
PRUint64 slapi_counter_subtract(Slapi_Counter *counter,
PRUint64 subvalue);
Parameters This function takes the following parameters:
The counter for which to set the value.
counter
The amount which should be subtracted from the current counter value to give the
new value.
subvalue
Returns The function returns the value of the counter (the current count) after the amount
specified in slapi_counter_subtract() has been subtracted.
See also
slapi_counter_add()
slapi_counter_decrement()
258 Functions for counters