[ Previous ] [ Contents ] [ Index ] [ Next ]

Ns_SetIDeleteKey

Overview

Remove a field from a set by key name case-insentively

Syntax

    void Ns_SetIDeleteKey(
    Ns_Set *set,
    char *key
    );

Description

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.

Examples

    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);

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.