void Ns_SetDelete( Ns_Set *set, int index );
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.
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);