Returns the AnsiString converted to null-terminated character array.
char* __fastcall c_str() const;
Description
c_str returns a pointer a null-terminated character array containing the same characters as the AnsiString. If the AnsiString is unassigned, c_str returns an empty string (摂).
Usually, the value returned by c_str points to the internal character array referenced by the data property. This pointer is valid until the string is next modified (for example when the SetLength method is called or the AnsiString goes out of scope). However, if the internal array is NULL, c_str returns a pointer to a string literal.
The c_str method is intended primarily for reading the value of the AnsiString. To modify the string抯 value, use the [] operator or AnsiString methods such as Insert and Delete.