42.6. slapi_value_get_int()

Description

Converts the value in the Slapi_Value to an integer.

Syntax

#include "slapi-plugin.h"
int slapi_value_get_int(const Slapi_Value *value);

Parameters

This function takes the following parameter:

value
Pointer to the Slapi_Value that you want to get as an integer.
Returns

This function returns one of the following values:

  • An integer that corresponds to the value stored in the Slapi_Value structure.
  • 0 if there is no value.