void Ns_DStringInit( Ns_DString *dsPtr );
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.
int MyFunctions(int a, int b) { Ns_DString ds; Ns_DStringInit(&ds); /* ds is now initialized and ready to pass to another function */ ... }