Remove a field from a set by key name case-insentively
void Ns_SetIDeleteKey( Ns_Set *set, char *key );
The Ns_SetIDeleteKey function is the case-insensitive counterpart to the Ns_SetDeleteKey function. It removes the field whose key name matches the given key case-insensitively. Any fields that follow the deleted field are moved up to keep the set contiguous. If more than one field in the set has the same key name, Ns_Set-IDeleteKey deletes just the first field.
Ns_Set *aSet; aSet = Ns_SetCreate(""); Ns_SetPut(aSet, "foo", "foovalue"); Ns_SetPut(aSet, "bar", "barvalue"); Ns_SetIDeleteKey(aSet, "Foo"); /* deletes foo->foovalue */ /* finish processing of aSet */ Ns_SetFree(aSet);