C API Reference -- Ns_DStringExport

### 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.

#### Examples

        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
Copyright © 1998-99 America Online, Inc.