39.3. slapi_dn_normalize_to_end()

Normalizes part of a DN value, specifically the part going from what is pointed to by dn to that pointed to by end. This routine does not NULL terminate the normalized bit pointed to by dn at the return of the function.
If the argument end happens to be NULL, this routine does basically the same thing as slapi_sdn_get_ndn(), except for NULL terminating the normalized DN.

Warning

This function does not null-terminate the string. Use this function only if you know what you are doing.
Syntax

#include "slapi-plugin.h"
char *slapi_dn_normalize_to_end( Slapi_DN *dn, char *end);

Parameters

This function takes the following parameters:

dn
DN value to be normalized.
end
Pointer to the end of what will be normalized from the DN value in dn. If this argument is NULL, the DN value in dn will be wholly normalized.
Returns

This function returns a pointer to the end of the dn that has been normalized. For example, if the RDN is cn=Jane and the DN is l=US, dc=example,dc=com, the new DN will be cn=Jane,l=US, dc=example,dc=com.