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

Ns_DStringExport

Overview

Export the string of an Ns_DString

Syntax

    char *Ns_DStringExport(
    	Ns_DString *src
    );

Description

The Ns_DStringExport function returns the current Ns_DString string and leaves the Ns_DString in the initialized state. The string returned needs to be freed eventually with ns_free.

Example

    Ns_DString ds;
    char *stringdest;
    Ns_DStringInit(&ds);
    Ns_DStringAppend(&ds, "foo");
    stringdest = Ns_DStringExport(&ds);
    /* do something with `stringdest' */
    ns_free(stringdest);

Top of Page

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