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

Ns_SetTrunc

Overview

Truncate an Ns_Set

Syntax

    void Ns_SetTrunc(
    Ns_Set *set,
    int size
    );

Description

The Ns_SetTrunc function reduces the set to the first size key-value pairs and frees the memory for the rest of the key-value pairs that may have been in the set.

Examples

    	/* Eliminate the headers sent by a browser. */
    	Ns_SetTrunc(conn->headers, 0);

Top of Page

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