Return the key name of a field
char *Ns_SetKey( Ns_Set *set, int index );
The Ns_SetKey macro returns the field key name of the field at the given index.
Ns_Set *aSet; aSet = Ns_SetCreate(""); Ns_SetPut(aSet, "foo", "foovalue"); Ns_SetPut(aSet, "bar", "barvalue"); printf("Key at index 0 is %s\n", Ns_SetKey(aSet, 0)); /* finish processing of aSet */ Ns_SetFree(aSet);