31.2. slapi_counter_decrement()

Atomically decrements the counter value and returns the new value.
Both this function and slapi_counter_increment() set the behavior of the counter, moving up or down. Other functions, such as slapi_counter_set_value(), manipulate the actual value of the counter.
Syntax

#include "slapi-plugin.h"
PRUint64 slapi_counter_decrement(Slapi_Counter *counter);

Parameters

This function takes the following parameter:

counter The counter to decrement.
Returns

The function returns the value of the counter (the current count) after the counter has been decremented.