Ns_SetDelete
Overview
Remove a field from a set by field index
Syntax
void Ns_SetDelete(
Ns_Set *set,
int index
);
Description
The Ns_SetDelete function removes the field of the given index from the set. Any fields that follow the deleted field are moved up to keep the set contiguous.
Example
Ns_Set *aSet;
aSet = Ns_SetCreate("");
Ns_SetPut(aSet, "foo", "foovalue");
Ns_SetPut(aSet, "bar", "barvalue");
Ns_SetDelete(aSet, 0); /* deletes foo->foovalue */
/* finish processing of aSet */
Ns_SetFree(aSet);