Sun Java System Directory Server Enterprise Edition 6.3 Developer's Guide

slapi_attr_get_bervals_copy()

Puts the values contained in an attribute into an array of berval structures.

Syntax

#include "slapi-plugin.h"
 int slapi_attr_get_bervals_copy(Slapi_Attr *a,
    struct berval ***vals );

Parameters

This function takes the following parameters:

a

Attribute that contains the desired values.

vals

Pointer to an array of berval structure pointers to hold the desired values.

Returns

This function returns one of the following values:

Description

This function copies the values from an attribute into an array of berval structure pointers.

Memory Concerns

Free this array using ber_bvecfree(3LDAP).