Ns_DStringNAppend
Overview
Append n-characters of a string to an Ns_DString
Syntax
char *Ns_DStringNAppend(
Ns_DString *dsPtr,
char *string,
int length
);
Description
The Ns_DStringNAppend function appends a string up to the specified number of characters.* The string may overflow from static space to the heap as a result of calling this function. It returns the string associated with the current Ns_DString.
Example
Ns_DString ds;
Ns_DStringInit(&ds);
Ns_DStringNAppend(&ds, "fooasdf", 3);
printf("%s\n", ds.string);
Ns_DStringFree(&ds); /* finished with dstring */