Q3CString_New
You can use theQ3CString_Newfunction to create a new C string.
TQ3StringObject Q3CString_New (const char *string);
string- A pointer to a null-terminated C string.
DESCRIPTION
TheQ3CString_Newfunction returns, as its function result, a new string object of typekQ3StringTypeCStringusing the sequence of characters pointed to by thestringparameter. That sequence of characters should be a standard C string (that is, an array of characters terminated by the null character). The characters are copied into the new string object's private data, so you can dispose of the array pointed to by thestringparameter ifQ3CString_Newreturns successfully. IfQ3CString_Newcannot allocate memory for the string, it returns the valueNULL.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help