19.7. slapi_attr_get_bervals_copy()
This function copies the values from an attribute into an array of berval structure pointers.
#include "slapi-plugin.h" int slapi_attr_get_bervals_copy( Slapi_Attr *a, struct berval ***vals );
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. |
This function returns one of the following values:
- 0 if values are found.
- -1 if null.
You should free this array using ber_bvecfree from the LDAP SDK for C.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.