#include "slapi-plugin.h" void slapi_mods_insert_smod_at(Slapi_Mods *smods, Slapi_Mod *smod, int pos);
This function takes the following parameters:
Pointer to an initialized Slapi_Mods.
Pointer to the Slapi_Mod to be inserted.
Position at which to insert the Slapi_Mod . Minimum value is 0. Maximum value is the current number of mods.
This function inserts a Slapi_Mod at a given position in Slapi_Mods. Position 0 (zero) refers to the first mod. A position equal to the current number of mods causes an append. mods at and above the specified position are moved up by one, and the given position refers to the newly inserted mod.