43.12. slapi_valueset_set_valueset()
This function initializes a Slapi_ValueSet structure by copying the values contained in another Slapi_ValueSet structure.
#include "slapi-plugin.h" void slapi_valueset_set_valueset(Slapi_ValueSet *vs1, const Slapi_ValueSet *vs2);
This function takes the following parameters:
|
vs1
| Pointer to the Slapi_ValueSet structure to which you wish to set the values. |
|
vs2
| Pointer to the Slapi_ValueSet structure from which you wish to copy the values. |
The function does not verify that the Slapi_ValueSet structure contains values, so it is your responsibility to verify that there are no values prior to calling this function. If you do not verify this, the allocated memory space will leak. You can free existing values by calling slapi_valueset_done().

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.