42.8. slapi_value_get_long()

Description

This function converts the value contained in the Slapi_Value structure into a long integer.

Syntax

#include "slapi-plugin.h"
long slapi_value_get_long(const Slapi_Value *value);

Parameters

This function takes the following parameter:

value
Pointer to the Slapi_Value that you wish to get as a long integer.
Returns

This function returns one of the following values:

  • A long integer which corresponds to the value stored in the Slapi_Value structure.
  • 0 if there is no value.