33.13. slapi_mod_init()

Description

This function initializes a Slapi_Mod so that it is empty but initially has room for the given number of attribute values.

Syntax

#include "slapi-plugin.h"
void slapi_mod_init(Slapi_Mod *smod, int initCount);

Parameters

This function takes the following parameters:

smod
Pointer to an uninitialized Slapi_Mod.
initCount
Suggested number of attribute values for which to make room. Minimum value is 0.
Memory Concerns

If you are unsure of the room you will need, you may use an initCountof 0. The Slapi_Mod expands as necessary.