| |||||||||
SummaryCreates a new JS string and ensures that the resulting string is null-terminated. | |||||||||
SyntaxJSString * JS_NewStringCopyZ(JSContext *cx, const char *s);
| |||||||||
DescriptionJS_NewStringCopyZ allocates space for a new JS string and its underlying storage, and then copies the contents of a C character array, s , into the new string. The new JS string is guaranteed to be null-terminated.
If the allocation is successful,
| |||||||||
See Also
|