int Ns_DStringLength( Ns_DString *dsPtr );
The Ns_DStringLength macro returns the current length of the Ns_DString.
Ns_DString ds; Ns_DStringInit(&ds); Ns_DStringAppend(&ds, "<html></html>"); printf("len=%d\n", Ns_DStringLength(&ds)); Ns_DStringFree(&ds); /* finished with dstring */