37.25. slapi_rdn_remove_index()

Description

This function removes an RDN type/value pair from a Slapi_RDN structure with atindex index (placed in the atindex+1 position).

Syntax

#include "slapi-plugin.h"
int slapi_rdn_remove_index(Slapi_RDN *rdn, int atindex);

Parameters

This function takes the following parameters:

rdn
The target Slapi_RDN structure.
atindex
The index of the RDN type/value pair to remove.
Returns

This function returns one of the following values:

  • 1 if the RDN is removed from rdn.
  • 0 if no RDN is removed because either rdn is empty or the index goes beyond the number of RDNs present.