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