Create a new StrBuf variable and initialize it with the contents of a plain C string.
StrBuf* NewStrBufPlain(const char* ptr, int nChars);
Create a new StrBuf variable and initialize it with the contents of a plain C string.
Parameter Description --------- ----------- ptr Pointer to a C string nchars Length of the C string or -1 if not known
Returns a pointer to a newly created StrBuf.
The contents of the C string specified in ptr will be copied into the StrBuf.