# FeatStd Util

#### Utility to safely access Strings character array

Experience showed that users have stored the char\* from [FeatStd::String::GetCString()](http://dev.doc.cgistudio.at/APILINK/class_feat_std_1_1_string.html#a84351832351549048b9df925404bb7de) resulting in crash when the pointer gets invalid. Therefore a new class [FeatStd::CStringAccess](http://dev.doc.cgistudio.at/APILINK/class_feat_std_1_1_c_string_access.html "The CStringAccess class is used for accessing the CString of a String. The CString is copied safely a...") has been introduced. Instances of this class can be initialized by [FeatStd::String::GetCStringAccess()](http://dev.doc.cgistudio.at/APILINK/class_feat_std_1_1_string.html#a42bdd87e8e043429e8f2fbc069a3aecd). The internal char\* string is copied (by considering thread safe access). On deletion the memory is overwritten with a pattern before to ease later debugging or core dump analysis.

---