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

Ns_DStringInit

Overview

Initialize an Ns_DString

Syntax

    void Ns_DStringInit(
    	Ns_DString *dsPtr
    );

Description

Before using an Ns_DString, you must initialize it with Ns_DStringInit. Storage for a Ns_DString is often on the stack in the calling function. The example below shows a typical usage.

Example

    int MyFunctions(int a, int b)
    {
    	Ns_DString ds;
    	Ns_DStringInit(&ds);
    	/* ds is now initialized and ready to pass to
           another function */
        ...
    }

Top of Page

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