39.18. slapi_sdn_isempty()

Description

This function checks whether a Slapi_DN structure contains a normalized or non-normalized value.

Syntax

#include "slapi-plugin.h"
int slapi_sdn_isempty( const Slapi_DN *sdn);

Parameters

This function takes the following parameter:

sdn
Pointer to the Slapi_DN structure that is going to be checked.
Returns

This function returns one of the following values:

  • 1 if there is no DN value (normalized or not) present in the Slapi_DN structure.
  • 0 if sdn is not empty.