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:

counter The counter for which to set the value.
subvalue The amount which should be subtracted from the current counter value to give the new value.
Returns

The function returns the value of the counter (the current count) after the amount specified in slapi_counter_subtract() has been subtracted.