33.40. slapi_mods_init()

Description

Initializes a Slapi_Mods so that it is empty but initially has room for the given number of mods.

Syntax

#include "slapi-plugin.h"
void slapi_mods_init(Slapi_Mods *smods, int initCount);

Parameters

This function takes the following parameters:

mods
Pointer to an initialized Slapi_Mods.
initCount
parameter
Suggested number of mods for which to make room. The minimum value is 0.
Memory Concerns

If you are unsure of how much room you will need, you may use an initCountof 0. The Slapi_Mods expands as necessary.