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

Ns_SetKey

Overview

Return the key name of a field

Syntax

    char *Ns_SetKey(
    	Ns_Set		*set,
    	int 		index
    );

Description

The Ns_SetKey macro returns the field key name of the field at the given index.

Example

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

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.